Method: Jinx::Filter#<<

Defined in:
lib/jinx/helpers/filter.rb

#<<(item) ⇒ Filter

Adds an item to the base Enumerable, if this Filter’s base supports it.

Parameters:

  • item

    the item to add

Returns:



38
39
40
41
# File 'lib/jinx/helpers/filter.rb', line 38

def <<(item)
  @base << item
  self
end