Class: Rouge::Formatters::Null

Inherits:
Rouge::Formatter show all
Defined in:
lib/rouge/formatters/null.rb

Overview

A formatter which renders nothing.

Constant Summary

Constants inherited from Rouge::Formatter

Rouge::Formatter::REGISTRY

Instance Method Summary collapse

Methods inherited from Rouge::Formatter

find, format, #format, #render, tag

Constructor Details

#initializeNull

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