Class: NoraMark::Html::RawTextBlockWriter

Inherits:
Object
  • Object
show all
Defined in:
lib/nora_mark/html/raw_text_block_writer.rb

Instance Method Summary collapse

Constructor Details

#initialize(generator) ⇒ RawTextBlockWriter

Returns a new instance of RawTextBlockWriter.



4
5
6
# File 'lib/nora_mark/html/raw_text_block_writer.rb', line 4

def initialize(generator)
  @generator = generator
end

Instance Method Details

#write(node) ⇒ Object



8
9
10
# File 'lib/nora_mark/html/raw_text_block_writer.rb', line 8

def write(node)
  @generator.to_html node.text
end