class CollectionDelegator

Public Instance Methods

method_missing(method_name, *args, &block) click to toggle source
Calls superclass method
# File lib/r_kit/struct/collection_delegator.rb, line 6
def method_missing method_name, *args, &block
  closure = super

  case closure
  when collection.class
    self.collection = closure
    self
  else
    closure
  end
end