Class: Btspm::Presenters::ScalarPresenter
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Btspm::Presenters::ScalarPresenter
- Defined in:
- lib/btspm/presenters.rb
Direct Known Subclasses
Instance Method Summary collapse
- #data_object ⇒ Object
- #h ⇒ Object
-
#initialize(data_object, view, locals = {}) ⇒ ScalarPresenter
constructor
A new instance of ScalarPresenter.
Constructor Details
#initialize(data_object, view, locals = {}) ⇒ ScalarPresenter
Returns a new instance of ScalarPresenter.
51 52 53 54 55 56 |
# File 'lib/btspm/presenters.rb', line 51 def initialize(data_object, view, locals = {}) @view = view @original_locals = locals create_instance_variables(locals) super(data_object) end |
Instance Method Details
#data_object ⇒ Object
58 59 60 |
# File 'lib/btspm/presenters.rb', line 58 def data_object __getobj__ end |
#h ⇒ Object
62 63 64 |
# File 'lib/btspm/presenters.rb', line 62 def h @view end |