Say I did the following while in the rails console
:
def test
puts "hi"
end
I can run test
and I see hi in the console. What I am trying to understand is where is this test
method attached to? Is it part of a class? Is there a command I can use to determine where the method belongs to?
Thanks!