[MacRuby] #1487: isEmpty() from ObjC

MacRuby ruby-noreply at macosforge.org
Tue Mar 27 21:48:49 PDT 2012


#1487: isEmpty() from ObjC
----------------------------------+-----------------------------------------
 Reporter:  iloveitaly@…          |       Owner:  lsansonetti@…        
     Type:  defect                |      Status:  new                  
 Priority:  blocker               |   Milestone:                       
Component:  MacRuby               |    Keywords:                       
----------------------------------+-----------------------------------------

Comment(by watson1978@…):

 And same method has been implemented in NSString for compatibility with
 Ruby.

 {{{
 irb(main):001:0> str = NSString.stringWithString("foo")
 => "foo"
 irb(main):002:0> str.count
 ArgumentError: wrong number of arguments

 irb(main):003:0> str.count "o"
 => 2
 }}}

 You might need to avoid "count" method.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1487#comment:2>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list