Method: Extlib::SimpleSet#<<

Defined in:
lib/extlib/simple_set.rb

#<<(value) ⇒ SimpleSet

Add a value to the set, and return it

Parameters:

  • value (Object)

    Value to add to set.

Returns:



29
30
31
32
# File 'lib/extlib/simple_set.rb', line 29

def <<(value)
  self[value] = true
  self
end