Created
September 8, 2011 13:16
-
-
Save skeller1/1203364 to your computer and use it in GitHub Desktop.
introspection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyClass | |
def my_method1 | |
p "my method1" | |
end | |
def my_method2 | |
p "my method2" | |
end | |
end | |
object = MyClass.new | |
p object.class.name | |
# => "MyClass" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment