General

Profile

saturnflyer (Jim Gay)

  • Login: saturnflyer
  • Registered on: 05/25/2013
  • Last sign in: 08/27/2022

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 1 2

Activity

05/25/2017

01:35 PM Ruby Feature #13563: Implement Hash#choice method.
babanba-n (matzbara masanao) wrote:
> I feel that Hash#slice is wrong name and Hash#pick is better name.
> ...
I prefer Hash#pick over Hash#choice.
I would expect the missing keys to return whatever the default value of the hash is...
saturnflyer (Jim Gay)

07/26/2014

06:04 PM Ruby Feature #8546: super errors in UnboundMethods
Nobuyoshi Nakada wrote:
> Fixed in 2.1.
I tried the above sample code in 2.1.2 and the error has changed from a TypeError to a NoMethodError: "NoMethodError: super: no superclass method `hello' for #<O:0x007fb799046c50>"
Is th...
saturnflyer (Jim Gay)

11/07/2013

02:36 AM Ruby Feature #8626: Add a Set coercion method to the standard lib: Set(possible_set)
This has been merged into ruby trunk in https://github.com/ruby/ruby/commit/ad78cf4ea8613c7e1790c5e3a2718a35fe32115f saturnflyer (Jim Gay)

07/12/2013

01:34 AM Ruby Feature #8626: Add a Set coercion method to the standard lib: Set(possible_set)
I've created a pull request for MRI here https://github.com/ruby/ruby/pull/359 saturnflyer (Jim Gay)
01:26 AM Ruby Feature #8626 (Open): Add a Set coercion method to the standard lib: Set(possible_set)
=begin
I'd like to be able to take an object that may already be a Set (or not) and ensure that it is one
For example:
set1 = Set.new
set2 = Set(set1)
set3 = Set(nil)
assert set1.equal?(set2)
assert_instanc...
saturnflyer (Jim Gay)

07/06/2013

12:31 PM Ruby Feature #8546: super errors in UnboundMethods
headius (Charles Nutter) wrote:
> I don't see how it would know the order in which to do the super logic. What do you expect to happen?
>
> First off, if the "supering" M was actually included into O, there would still be nothing...
saturnflyer (Jim Gay)

06/20/2013

06:18 AM Ruby Feature #8546 (Closed): super errors in UnboundMethods
`UnboundMethod`s are unable to call `super`
~~~ruby
module M
def hello
puts "hello from M"
end
end
class O
def hello
puts "hello"
end
end
o = O.new
o.hello #=> "hello"
M.instance_method(:hello).bind(o)...
saturnflyer (Jim Gay)

05/31/2013

01:53 PM Ruby Feature #4254: Allow method transplanting
thanks nobu! I blindly trusted the travis-ci build. good to know this is still valid behavior. saturnflyer (Jim Gay)

05/25/2013

03:06 AM Ruby Feature #4254: Allow method transplanting
=begin
I am interested in this feature although with a different use.
It appears that 2.0.0-p0 allowed methods to be unbound from a module and bound to any object.
I've forked rubyspec and created a failing spec ((<URL:https://git...
saturnflyer (Jim Gay)

Also available in: Atom