Hello. Sorry to step in with a frivolous suggestion, but I just noticed the name `RubyVM::AbstractSyntaxTree` in the RC1 announcement and was surprised by the length of the word when the shorter name "AST" would suffice. mame (Yusuke ...lucasbuchala (Lucas Buchala)
I think this is because `do ... end` blocks has lower precedence than `{...}` blocks. As documented in [1]. So, probably, not a bug. ~~~ method1 method2 { ... } # method2's block method1 method2 do ... end # method1's block ~~...lucasbuchala (Lucas Buchala)
Hello. I don't have any strong opinion about this feature, but I guess I would welcome such feature if it used standard operators. After seeing this issue, I remembered that I have tried this in the past, so I'm just sharing a snippet to...lucasbuchala (Lucas Buchala)
Rather than a bug, I wonder if this is just a documentation omission. In case of a documentation omission, I created a PR: https://github.com/ruby/ruby/pull/1692lucasbuchala (Lucas Buchala)
I don't know if this way of creating ARGF-like objects is supported or not. I just noticed that it didn't update the `.lineno` when used in `.each`. Consider the example input file: ~~~ $ cat file1 foo bar baz ~~~ The foll...lucasbuchala (Lucas Buchala)
Isn't there a newline character at the end of string returned by shell quotes? I think that's the reason the .index method will not find the substring. If you don't want the newline, you can do something like: ~~~ `cmd ...`.chomp...lucasbuchala (Lucas Buchala)
I added a comment on issue #10121 before knowing this specific issue already existed. I just wanted to say that, with the arrival of Dir.empty?, I like the idea of the File.empty? alias for the reason of having some symmetry between D...lucasbuchala (Lucas Buchala)
Now that Ruby got a Dir.empty? method, do you think it makes sense to add a File.empty? as an alias for File.zero? ? (I didn't know if it was worth opening a new issue for this simple suggestion, so I just appended it here, since I se...lucasbuchala (Lucas Buchala)