We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following work as expected in Ruby 1.9:
printf '%d' % lazy { 23 } # -> '23' puts lazy { [] }.respond_to? :to_ary # -> 'true'
But in Ruby 1.8.7 they seem to act on the Lazy object itself:
Lazy
printf '%d' % lazy { 23 } # TypeError: can't convert Lazy into Integer # from (irb):3:in `%' # from (irb):3 puts lazy { [] }.respond_to? :to_ary # -> 'false'
Not sure if it's possible to fix this in 1.8.7, I just thought I'd report this and ask if you know any workarounds?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following work as expected in Ruby 1.9:
But in Ruby 1.8.7 they seem to act on the
Lazy
object itself:Not sure if it's possible to fix this in 1.8.7, I just thought I'd report this and ask if you know any workarounds?
The text was updated successfully, but these errors were encountered: