Last active
February 12, 2018 17:18
-
-
Save 2called-chaos/510fbfbcd1e38729025ee85489bbfb65 to your computer and use it in GitHub Desktop.
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
[1] pry(main)> class Fooo | |
[1] pry(main)* def initialize a, b | |
[1] pry(main)* end | |
[1] pry(main)* end | |
55µs => :initialize | |
[5] pry(main)> Foo.instance_method(:initialize).arity | |
31µs => 2 | |
[6] pry(main)> Foo.instance_method(:initialize).source_location | |
31µs => ["(pry)", 2] | |
[8] pry(main)> Foo.instance_method(:initialize).parameters | |
33µs => [[:req, :a], [:req, :b]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment