Class: Vedeu::Renderers::Null

Inherits:
Object
  • Object
show all
Includes:
Options
Defined in:
lib/vedeu/output/renderers/null.rb

Overview

A renderer which returns nothing.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Vedeu::Renderers::Null

Returns a new instance of Vedeu::Renderers::Null.

Parameters:

  • options (Hash) (defaults to: {})


15
16
17
# File 'lib/vedeu/output/renderers/null.rb', line 15

def initialize(options = {})
  @options = options || {}
end

Instance Attribute Details

#optionsHash<Symbol => void> (private) Originally defined in module Options

Combines the options provided at instantiation with the default values.

Returns:

  • (Hash<Symbol => void>)

Instance Method Details

#clearString

Render a cleared output.

Returns:

  • (String)


22
23
24
# File 'lib/vedeu/output/renderers/null.rb', line 22

def clear
  ''
end

#compress?Boolean Originally defined in module Options

Returns:

  • (Boolean)

#defaultsHash<Symbol => void> (private) Originally defined in module Options

The default values for a new instance of this class.

Returns:

  • (Hash<Symbol => void>)

#render(output) ⇒ String

Parameters:

Returns:

  • (String)


28
29
30
# File 'lib/vedeu/output/renderers/null.rb', line 28

def render(output)
  output
end