in irb
def why?
end
=> nilObject.public_instance_methods.include?(“why?”)
=> true
in test.rb
def why?
end
p Object.private_instance_methods.include?(“why?”) # => true
##################
Help Me^^
##################
def why?
end
=> nilObject.public_instance_methods.include?(“why?”)
=> true
def why?
end
p Object.private_instance_methods.include?(“why?”) # => true
##################
##################
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs