class BasicPresenter::BasePresenter
Attributes
domain_object[R]
extend Forwardable Presenter Class should allow DomainClass instance to be initialized
Public Class Methods
new(domain_object)
click to toggle source
# File lib/basic_presenter/base_presenter.rb, line 11 def initialize(domain_object) @domain_object = domain_object end
presents(name)
click to toggle source
# File lib/basic_presenter/base_presenter.rb, line 16 def presents(name) define_method(name) do @domain_object end end