class Hash
Public Instance Methods
hash << [key, value] → hash
click to toggle source
Equivalent to hash = value, but allows chaining:
{} << [1, "one"] << [2, "two"] << [3, "three"] #=> {1=>"one", 2=>"two", 3=>"three"}
# File lib/coroutines.rb, line 82 def <<(args) self[args[0]] = args[1] self end