So what methods do exist for Greeter objects?
irb(main):003:0> Greeter.instance_methods
=> ["method", "instance_variables", "__id__", "to_s", "send", "object_id", "dup", "private_methods", "=~", "is_a?", "class", "tainted?", "singleton_methods", "eql?", "untaint", "instance_of?", "id", "instance_variable_get", "inspect", "instance_eval", "extend", "nil?", "__send__", "frozen?", "taint", "instance_variable_defined?", "public_methods", "hash", "to_a", "clone", "protected_methods", "respond_to?", "display", "freeze", "kind_of?", "==", "instance_variable_set", "type", "===", "equal?", "methods"]
irb(main):004:0>
No comments :
Post a Comment