`gravity``undefined method`Ruby
`$sen.gravity``gravity`
* * *
main private
`gravity``main``$sen.gravity``undefined method``private method 'gravity' called`
KernelKernelObjectincludeObject
def m
p self.class
end
[].__send(:m) #=> Array
{}.__send(:m) #=> Hash
#
def hoge
puts "hoge"
end
class Hoge
def fuga
hoge
end
end
Hoge.new.fuga #=> "hoge"
Hoge.new.hoge #=> private method `hoge' called for #
* * *