Class: Stupidedi::Writer::Claredi

Inherits:
Object
  • Object
show all
Defined in:
lib/stupidedi/writer/claredi.rb

Instance Method Summary collapse

Constructor Details

#initialize(node) ⇒ Claredi

Returns a new instance of Claredi.



6
7
8
# File 'lib/stupidedi/writer/claredi.rb', line 6

def initialize(node)
  @node = node
end

Instance Method Details

#write(out = "") ⇒ String

Returns:



11
12
13
14
15
# File 'lib/stupidedi/writer/claredi.rb', line 11

def write(out = "")
  out << "<html><head>\n#{style}</head>\n<body>\n"
  build(@node, out)
  out << "</body></html>"
end