Class: DeadSimpleCMS::Group::Presenter::Base
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- DeadSimpleCMS::Group::Presenter::Base
- Defined in:
- lib/dead_simple_cms/group/presenter/base.rb
Instance Attribute Summary collapse
-
#group ⇒ Object
readonly
Returns the value of attribute group.
Instance Method Summary collapse
-
#initialize(view_context, group, *args) ⇒ Base
constructor
A new instance of Base.
-
#initialize_extra_arguments(*args) ⇒ Object
Private: Initialize extra arguments for the presenter.
- #render ⇒ Object
Constructor Details
#initialize(view_context, group, *args) ⇒ Base
Returns a new instance of Base.
12 13 14 15 16 |
# File 'lib/dead_simple_cms/group/presenter/base.rb', line 12 def initialize(view_context, group, *args) @group = group initialize_extra_arguments(*args) super(view_context) end |
Instance Attribute Details
#group ⇒ Object (readonly)
Returns the value of attribute group.
10 11 12 |
# File 'lib/dead_simple_cms/group/presenter/base.rb', line 10 def group @group end |
Instance Method Details
#initialize_extra_arguments(*args) ⇒ Object
Private: Initialize extra arguments for the presenter.
19 20 |
# File 'lib/dead_simple_cms/group/presenter/base.rb', line 19 def initialize_extra_arguments(*args) end |
#render ⇒ Object
22 23 24 |
# File 'lib/dead_simple_cms/group/presenter/base.rb', line 22 def render raise(NotImplementedError, "Please define your own #render method.") end |