The following usage calls a protected method and prints "hello": ``` ruby class Test protected def referenced_columns puts "hello" end end Test.new.tap(&:referenced_columns) ``` However, the follow...bjfish (Brandon Fish)
Example ``` ruby irb(main):001:0> /(.)(.)(\d+)(\d)/.match("THX1138.")[-1, 10] => ["8", nil, nil, nil, nil, nil, nil, nil, nil, nil] ``` I would expect this to be consistent with String or Array for example: ``` ruby irb(main):...bjfish (Brandon Fish)
**Example** ``` ruby require 'date' p Float::INFINITY <=> Date::Infinity.new p Date::Infinity.new <=> Float::INFINITY ``` **Expected Result** I expected the comparison to have the same result when the order of values is switched...bjfish (Brandon Fish)
The following example shows `#size` returns `nil` when the `size` was provided to `new` as `3`. **Example** ``` ruby p Enumerator::Lazy.new([1, 2, 3], 3){|y, v| y << v}.with_index.size ``` **Expected Result** ``` ruby 3 ``` *...bjfish (Brandon Fish)
**Description** The following shows that the constant lookup from B does not find the constant in the prepended M module. I would expect this lookup to behave like "B.include M" which does print the constant from module M. **Examp...bjfish (Brandon Fish)
The `RbConfig::CONFIG["SDKROOT"]` is not frozen on macOS when the `SDKROOT` environment variable is set which causes the kernel spec (https://github.com/ruby/ruby/blob/1b3339528c0804aa0e673bd3f15be8b087d17bd8/spec/ruby/library/rbconfig/r...bjfish (Brandon Fish)
**Steps to reproduce** ``` shell % ruby -e 'p ((0.24901079128550474)...(340.25008088980684)).step(34.00010700985213).last' 340.2500808898068 ``` **Expected result** Last value should match the value produced by the following: ...bjfish (Brandon Fish)
Tested on ruby versions 2.3.4 and 2.4.1 When a refinement is used inside a block, the scope of the refinement is not ending when the block has ended. The following example illustrates the issue: Example: ~~~ ruby class Example ...bjfish (Brandon Fish)