Class: Vedeu::Renderers::Null
- Inherits:
-
Object
- Object
- Vedeu::Renderers::Null
- Includes:
- Options
- Defined in:
- lib/vedeu/output/renderers/null.rb
Overview
A renderer which returns nothing.
Instance Attribute Summary collapse
-
#options ⇒ Hash<Symbol => void>
included
from Options
private
Combines the options provided at instantiation with the default values.
Instance Method Summary collapse
-
#clear ⇒ String
Render a cleared output.
- #compress? ⇒ Boolean included from Options
-
#defaults ⇒ Hash<Symbol => void>
included
from Options
private
The default values for a new instance of this class.
-
#initialize(options = {}) ⇒ Vedeu::Renderers::Null
constructor
Returns a new instance of Vedeu::Renderers::Null.
- #render(output) ⇒ String
Constructor Details
#initialize(options = {}) ⇒ Vedeu::Renderers::Null
Returns a new instance of Vedeu::Renderers::Null.
15 16 17 |
# File 'lib/vedeu/output/renderers/null.rb', line 15 def initialize( = {}) = || {} end |
Instance Attribute Details
#options ⇒ Hash<Symbol => void> (private) Originally defined in module Options
Combines the options provided at instantiation with the default values.
Instance Method Details
#clear ⇒ String
Render a cleared output.
22 23 24 |
# File 'lib/vedeu/output/renderers/null.rb', line 22 def clear '' end |
#compress? ⇒ Boolean Originally defined in module Options
#defaults ⇒ Hash<Symbol => void> (private) Originally defined in module Options
The default values for a new instance of this class.
#render(output) ⇒ String
28 29 30 |
# File 'lib/vedeu/output/renderers/null.rb', line 28 def render(output) output end |