Class: Rouge::Formatters::Null
- Inherits:
-
Rouge::Formatter
- Object
- Rouge::Formatter
- Rouge::Formatters::Null
- Defined in:
- lib/rouge/formatters/null.rb
Overview
A formatter which renders nothing.
Constant Summary
Constants inherited from Rouge::Formatter
Instance Method Summary collapse
-
#initialize ⇒ Null
constructor
A new instance of Null.
- #stream(tokens, &b) ⇒ Object
Methods inherited from Rouge::Formatter
find, format, #format, #render, tag
Constructor Details
#initialize ⇒ Null
Returns a new instance of Null.
7 8 |
# File 'lib/rouge/formatters/null.rb', line 7 def initialize(*) end |
Instance Method Details
#stream(tokens, &b) ⇒ Object
10 11 12 |
# File 'lib/rouge/formatters/null.rb', line 10 def stream(tokens, &b) tokens.to_a end |