Elementor

Elementor is a type of Functor. Operations applied to it are routed to each element.

Methods
instance_delegate instance_operator method_missing new
Public Class methods
new(elem_object, elem_method=nil)
# File lib/more/facets/elementor.rb, line 101
  def initialize(elem_object, elem_method=nil)
    @elem_object = elem_object
    @elem_method = elem_method || :map
  end
Public Instance methods
instance_delegate()
# File lib/more/facets/elementor.rb, line 106
  def instance_delegate
    @elem_object
  end
instance_operator()
# File lib/more/facets/elementor.rb, line 110
  def instance_operator
    @elem_method
  end
method_missing(sym,*args,&blk)
# File lib/more/facets/elementor.rb, line 114
  def method_missing(sym,*args,&blk)
    @elem_object.__send__(@elem_method){ |x| x.__send__(sym,*args,&blk) }
  end