Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Why is irb different from script file?

0 views
Skip to first unread message

Kyung won Cheon

unread,
Oct 23, 2008, 2:35:42 AM10/23/08
to
## in irb

>> def why?
>> end
=> nil
>> Object.public_instance_methods.include?("why?")
=> true


## in test.rb

def why?
end
p Object.private_instance_methods.include?("why?") # => true

##################
# Help Me^^
##################
--
Posted via http://www.ruby-forum.com/.

0 new messages