[MacRuby] #1428: Enumerator#count is missing
#1428: Enumerator#count is missing --------------------------------+------------------------------------------- Reporter: lastobelus@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: --------------------------------+------------------------------------------- {{{ # ruby 1.9.2 [].each.count NoMethodError: undefined method `count' for #<Enumerator:0x2000fc9a0> # macruby [].each.count => 0 }}} however, there is an {{{ _count }}} method this breaks the pry gem [http://pry.github.com/] -- Ticket URL: <http://www.macruby.org/trac/ticket/1428> MacRuby <http://macruby.org/>
#1428: Enumerator#count is missing --------------------------------+------------------------------------------- Reporter: lastobelus@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: --------------------------------+------------------------------------------- Comment(by lastobelus@…): sigh, labelled those backwards: {{{ # macruby [].each.count NoMethodError: undefined method `count' for #<Enumerator:0x2000fc9a0> # ruby 1.9.2 [].each.count => 0 }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1428#comment:1> MacRuby <http://macruby.org/>
#1428: Enumerator#count is missing --------------------------------+------------------------------------------- Reporter: lastobelus@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: --------------------------------+------------------------------------------- Comment(by watson1978@…): Currently, #count method is implemented as #_count. https://github.com/MacRuby/MacRuby/blob/master/enum.c#L2047-2054 {{{ $ macruby -e 'p [].each._count' 0 }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1428#comment:2> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby