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


9
10
11
# File 'lib/stupidedi/writer/claredi.rb', line 9

def initialize(node)
  @node = node
end

Instance Method Details

#write(out = "") ⇒ String

Returns:

  • (String)

14
15
16
17
18
# File 'lib/stupidedi/writer/claredi.rb', line 14

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