Tyler Rick

  • Email:
  • Registered on: 08/27/2008
  • Last connection: 02/05/2015

Activity

Reported issues: 2

02/05/2015

07:39 PM Ruby trunk 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...

03/13/2014

07:10 PM Ruby trunk 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...

04/24/2013

07:44 AM Ruby trunk 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...
07:41 AM Ruby trunk Bug #8316 (Closed): Can't pass hash to first positional argument; hash interpreted as keyword arg...
I'm able to pass any other type of object to my first argument:
def foo(hash, opt: true)
puts "hash: #{hash},...

03/06/2013

02:49 AM Ruby trunk 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...

08/27/2008

05:57 PM Ruby trunk 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...
05:53 PM Ruby trunk 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")
...

Also available in: Atom