Sha256: 7e62f903805a91b3899c6731da10c6dd78cede83faecd8d5fc5f87ec07f0f16c

Contents?: true

Size: 554 Bytes

Versions: 9

Compression:

Stored size: 554 Bytes

Contents

class BaseListPresenter
  attr_reader :context, :list
  alias_method :h, :context

  delegate(
    :[],
    :all?,
    :any?,
    :count,
    :cycle,
    :detect,
    :drop,
    :each,
    :empty?,
    :first,
    :inject,
    :last,
    :map,
    :none?,
    :one?,
    :pop,
    :reduce,
    :reject,
    :reverse,
    :rotate,
    :sample,
    :select,
    :size,
    :shift,
    :shuffle,
    :slice,
    :sort,
    :sort_by,
    :take_while,
    :zip,
    to: :list
  )

  def initialize(list, context)
    @list, @context = list, context
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rails_admin_cms-0.1.1 app/presenters/base_list_presenter.rb
rails_admin_cms-0.0.9 app/presenters/base_list_presenter.rb
rails_admin_cms-0.0.7 app/presenters/base_list_presenter.rb
rails_admin_cms-0.0.6 app/presenters/base_list_presenter.rb
rails_admin_cms-0.0.5 app/presenters/base_list_presenter.rb
rails_admin_cms-0.0.4 app/presenters/base_list_presenter.rb
rails_admin_cms-0.0.3 app/presenters/base_list_presenter.rb
rails_admin_cms-0.0.2 app/presenters/base_list_presenter.rb
rails_admin_cms-0.0.1 app/presenters/base_list_presenter.rb