[#66126] Creation/Conversion methods/functions table for Ruby types — SASADA Koichi <ko1@...>
Hi,
5 messages
2014/11/07
[#66248] [ruby-trunk - Feature #10423] [PATCH] opt_str_lit*: avoid literal string allocations — normalperson@...
Issue #10423 has been updated by Eric Wong.
3 messages
2014/11/13
[#66595] [ruby-trunk - Bug #10557] [Open] Block not given when the argument is a string — bartosz@...
Issue #10557 has been reported by Bartosz Kopinski.
3 messages
2014/11/30
[ruby-core:66318] Re: [ruby-trunk - Bug #10518] [Open] String "delete" method does not remove some characters from input string
From:
Eric Wong <normalperson@...>
Date:
2014-11-16 12:08:51 UTC
List:
ruby-core #66318
sergio.gallelli@gmail.com wrote: > irb(main):001:0> str = 'A-B' > => "A-B" > irb(main):002:0> str.delete ' -#' > => "A-B" ' -#' is interpreted as: range of characters from ' ' (space) to '#'. See String#count documentation I suppose it is weird and surprising behavior, but I doubt it can change for compatibility. I would normally use String#tr if I wanted a range.