Skip to content

Instantly share code, notes, and snippets.

@aditya
Created May 6, 2009 19:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aditya/107695 to your computer and use it in GitHub Desktop.
Save aditya/107695 to your computer and use it in GitHub Desktop.
>> class Foo
>> def bar=(a = nil, b = nil)
>> @bar = "#{a}#{b}"
>> end
>> end
=> nil
>> f = Foo.new
=> #<Foo:0x5f3390>
>> f.bar = 5,10
=> [5, 10]
>> f.bar
=> "510"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment