[MacRuby] #1342: Ruby 1.9.2 Syntax
#1342: Ruby 1.9.2 Syntax ------------------------------------+--------------------------------------- Reporter: seanlilmateus@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: Syntax, Ruby 1.9.2 ------------------------------------+--------------------------------------- this code run on ruby 1.9.2p180 but it does on MacRuby p "%d %s" % [1, "message"] # => "1 message" # =>"1 message" p "%{firstname}, %{lastname}" % {firstname: "Masao", lastname: "Mutoh"} # => "Masao, Mutoh" p "%<integer>d, %<float>.1f" % { integer: 10, float: 43.476374 } # => "10, 43.5" on MacRuby this results an "ArgumentError: named after numbered" -- Ticket URL: <http://www.macruby.org/trac/ticket/1342> MacRuby <http://macruby.org/>
#1342: Ruby 1.9.2 Syntax ------------------------------------+--------------------------------------- Reporter: seanlilmateus@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: Syntax, Ruby 1.9.2 ------------------------------------+--------------------------------------- Comment(by seanlilmateus@…): puts "%d %s" % [1, "message"] # => "1 message"[[BR]] puts "%{firstname}, %{lastname}" % {firstname: "Masao", lastname: "Mutoh"} # => "Masao, Mutoh" [[BR]] puts "%<integer>d, %<float>.1f" % { integer: 10, float: 43.476374 } # => "10, 43.5" [[BR]] -- Ticket URL: <http://www.macruby.org/trac/ticket/1342#comment:1> MacRuby <http://macruby.org/>
#1342: Ruby 1.9.2 Syntax ------------------------------------+--------------------------------------- Reporter: seanlilmateus@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: minor | Milestone: MacRuby 1.0 Component: MacRuby | Resolution: fixed Keywords: Syntax, Ruby 1.9.2 | ------------------------------------+--------------------------------------- Changes (by watson1978@…): * status: new => closed * resolution: => fixed Comment: Fixed with https://github.com/MacRuby/MacRuby/commit/b78d2b6130ff7d2460572025b68434c0fb... -- Ticket URL: <http://www.macruby.org/trac/ticket/1342#comment:2> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby