General

Profile

TylerRick (Tyler Rick)

Issues

Activity

04/18/2019

11:41 PM Ruby master Feature #8834: Kernel#load_relative
This seems like a curious omission. It would be useful to have a `load_relative` that loads relative to the script pa... TylerRick (Tyler Rick)

01/01/2019

11:14 PM Ruby master Feature #15492 (Open): Let #dig take a "default value" block like Hash#fetch does
[fetch](https://ruby-doc.org/core-2.6/Hash.html#method-i-fetch) provides multiple ways to handle the case where a key... TylerRick (Tyler Rick)

06/06/2018

01:49 AM Ruby master Bug #8316: Can't pass hash to first positional argument; hash interpreted as keyword arguments
ozydingo (Andrew Schwartz) wrote:
> This is unfortunately still an issue with default values in positional arguments...
TylerRick (Tyler Rick)

02/05/2015

07:39 PM Ruby master Feature #8564: Extend Module#attr... methods
I would love to see this added to Ruby too, so that I don't have to repeat myself by **defining** attributes in one p... TylerRick (Tyler Rick)

03/13/2014

07:10 PM Ruby master Feature #5825: Sweet instance var assignment in the object initializer
I would *love* to see this feature in Ruby. Assigning an argument to an instance variable in a constructor is someth... TylerRick (Tyler Rick)

04/24/2013

07:44 AM Ruby master Bug #8316: Can't pass hash to first positional argument; hash interpreted as keyword arguments
=begin
http://jp.rubyist.net/magazine/?Ruby200SpecialEn-kwarg#f01 said:
Be careful when passing hashes to method...
TylerRick (Tyler Rick)
07:41 AM Ruby master Bug #8316 (Closed): Can't pass hash to first positional argument; hash interpreted as keyword arguments
I'm able to pass any other type of object to my first argument:
def foo(hash, opt: true)
puts "hash: #{hash},...
TylerRick (Tyler Rick)

03/06/2013

02:49 AM Ruby master Bug #6151: ArgumentError of lambda shows wrong location
I agree, @trans, this is a very surprising behavior. I was expecting instance_eval to call the block I passed to it w... TylerRick (Tyler Rick)

08/27/2008

05:57 PM Ruby master Feature #504: Tempfile.open should return the new tempfile rather than nil
=begin
Currently, if you want to be able to do anything with the tempfile after the block ends, you have to do somet...
TylerRick (Tyler Rick)
05:53 PM Ruby master Feature #504 (Closed): Tempfile.open should return the new tempfile rather than nil
=begin
It seems like you ought to be able to do this
f = Tempfile.open("foo") do |f|
f.print("foo\n")
...
TylerRick (Tyler Rick)

Also available in: Atom