Class: Lotus::Views::NullView Private
- Inherits:
-
Object
- Object
- Lotus::Views::NullView
- Defined in:
- lib/lotus/views/null_view.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Null Object pattern for views
Instance Method Summary collapse
-
#initialize(body) ⇒ NullView
constructor
private
A new instance of NullView.
- #render(context) ⇒ Object private
Constructor Details
#initialize(body) ⇒ NullView
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of NullView.
8 9 10 |
# File 'lib/lotus/views/null_view.rb', line 8 def initialize(body) @body = body end |
Instance Method Details
#render(context) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
12 13 14 |
# File 'lib/lotus/views/null_view.rb', line 12 def render(context) @body end |