It's great to see that FileUtils has Unix friendly methods, so it feels like
working in the shell. However, I'd prefer to just type cp and not
FileUtils.cp. Is there a way to import those methods into Kernel so I don't
have to qualify them all?
Thanks,
Mike
···
--
Michael P. Soulier <msoulier@digitaltorque.ca>
"Any intelligent fool can make things bigger and more complex... It
takes a touch of genius - and a lot of courage to move in the opposite
direction." --Albert Einstein
It's great to see that FileUtils has Unix friendly methods, so it feels like
working in the shell. However, I'd prefer to just type cp and not
FileUtils.cp. Is there a way to import those methods into Kernel so I don't
have to qualify them all?
It's great to see that FileUtils has Unix friendly methods, so it feels
like
working in the shell. However, I'd prefer to just type cp and not
FileUtils.cp. Is there a way to import those methods into Kernel so I
don't
have to qualify them all?
FileUtils is a module so you can #include or #extend.
Ah, perfect. I didn't realize that it was a module.
Mike
···
On 23/09/06 Vincent Fourmond said:
include FileUtils
--
Michael P. Soulier <msoulier@digitaltorque.ca>
"Any intelligent fool can make things bigger and more complex... It
takes a touch of genius - and a lot of courage to move in the opposite
direction." --Albert Einstein