Sha256: 7ca8cd1fcf2df897b2dbd6920af766fb8cee0ba3e6a7e3c832513aa2d6ca33f0
Contents?: true
Size: 458 Bytes
Versions: 3
Compression:
Stored size: 458 Bytes
Contents
require 'active_support/core_ext/module/delegation.rb' module BasicPresenter class BasePresenter # extend Forwardable # Presenter Class should allow DomainClass instance # to be initialized attr_reader :domain_object def initialize(domain_object) @domain_object = domain_object end class << self def presents(name) define_method(name) do @domain_object end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
basic_presenter-0.0.4 | lib/basic_presenter/base_presenter.rb |
basic_presenter-0.0.3 | lib/basic_presenter/base_presenter.rb |
basic_presenter-0.0.2 | lib/basic_presenter/base_presenter.rb |