Hi!
I would like to know if it's possible to "dump" how a class looks like.
E.g.
class Hello
def initialize(name)
@name = name
end
end
[... lots of code here, and then I reopen the Hello class]
class Hello
def say_hello
puts @name
end
end
Now what I would like to do is have a way to peek into exactly what this class looks like. I.e., I wanna do something that gives me this kind of output:
"class Hello
def initialize(name)
@name = name
end
def say_hello
puts @name
end
end"
Thanks a bunch for the help
Rob