We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
headius
Learn more about funding links in repositories.
Report abuse
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
options = {:capture=>/\d+/} p(" with options %p" % options)
We throw an argument error when we should inspect the hash and subst that into the format string.
The text was updated successfully, but these errors were encountered:
Could someone link the RubySpec for this? Can't find it :/
Sorry, something went wrong.
in MRI (2.1) or JRuby 9k the snippet doesn't throw an error
marking as JRuby 1.7.x only, present on 1.7.24 :
kares@sputnik:~/workspace/oss/jruby/test$ rvm use 1.7.24 Using /opt/local/rvm/gems/jruby-1.7.24 kares@sputnik:~/workspace/oss/jruby/test$ irb jruby-1.7.24 :001 > options = {:capture=>/\d+/} => {:capture=>/\d+/} jruby-1.7.24 :002 > p(" with options %p" % options) ArgumentError: positional args mixed with named args from org/jruby/RubyString.java:1228:in `%' from (irb):2:in `evaluate' from org/jruby/RubyKernel.java:1079:in `eval' from org/jruby/RubyKernel.java:1479:in `loop' from org/jruby/RubyKernel.java:1242:in `catch' from org/jruby/RubyKernel.java:1242:in `catch' from /opt/local/rvm/rubies/jruby-1.7.24/bin/irb:13:in `(root)' jruby-1.7.24 :003 > jruby-1.7.24 :004 > exit kares@sputnik:~/workspace/oss/jruby/test$ rvm use 1.9.3 Using /opt/local/rvm/gems/ruby-1.9.3-p551 kares@sputnik:~/workspace/oss/jruby/test$ irb 1.9.3-p551 :001 > options = {:capture=>/\d+/} => {:capture=>/\d+/} 1.9.3-p551 :002 > p(" with options %p" % options) " with options {:capture=>/\\d+/}" => " with options {:capture=>/\\d+/}"
This works in 9k (recently fixed as another issue in fact) and we will never fix this in 1.7.x as it is winding down....resolving.
No branches or pull requests
We throw an argument error when we should inspect the hash and subst that into the format string.
The text was updated successfully, but these errors were encountered: