Class: Stupidedi::Writer::Claredi
- Defined in:
- lib/stupidedi/writer/claredi.rb
Instance Method Summary collapse
-
#initialize(node) ⇒ Claredi
constructor
A new instance of Claredi.
- #write(out = "") ⇒ String
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
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 |