class DecentPresenter::CollectionProxy

Attributes

original_collection[R]
presented_collection[R]

Public Class Methods

new(original_collection, presented_collection) click to toggle source
# File lib/decent_presenter/collection_proxy.rb, line 13
def initialize(original_collection, presented_collection)
  @original_collection = original_collection
  @presented_collection = presented_collection
end

Public Instance Methods

method_missing(method, *args, &block) click to toggle source
# File lib/decent_presenter/collection_proxy.rb, line 18
def method_missing(method, *args, &block)
  presented_collection.send(method, *args, &block)
end