[MacRuby-devel] [ruby] #50: Nested methods don't work

ruby ruby-noreply at macosforge.org
Tue Apr 15 22:35:45 PDT 2008


#50: Nested methods don't work
------------------------------------+---------------------------------------
 Reporter:  insanitarian at yahoo.com  |       Owner:  lsansonetti at apple.com
     Type:  defect                  |      Status:  new                  
 Priority:  minor                   |   Milestone:                       
Component:  MacRuby                 |    Keywords:  nested               
------------------------------------+---------------------------------------
 Nested methods in MacRuby don't seem to work; therefore, incompatibilities
 with porting from Ruby/RubyCocoa arise.

 Examples:

 $ irb

 :> def foo

 :>   def bar; 42; end

 :> bar

 :> end

 => nil

 :> foo

 => 42

 http://pasternak.superalloy.nl/pastes/329?theme=dawn

-- 
Ticket URL: <http://trac.macosforge.org/projects/ruby/ticket/50>
ruby <http://ruby.macosforge.org/>


More information about the MacRuby-devel mailing list