B
Burt Hill
I am new to ruby and although I am learning quickley I was wondering if
it is possible to view code, I will explain.
When I write a module I can use the below code to print out the method
names I used in my module on screen which is ok, but is it possible to
print everything I written (the whole script) onscreen and/or
output/save it to a txt file?
===================================================================================
module Hidden
class << self
p instance_methods-Module.instance_methods
end
end
===================================================================================
it is possible to view code, I will explain.
When I write a module I can use the below code to print out the method
names I used in my module on screen which is ok, but is it possible to
print everything I written (the whole script) onscreen and/or
output/save it to a txt file?
===================================================================================
module Hidden
class << self
p instance_methods-Module.instance_methods
end
end
===================================================================================