Class: Stupidedi::Writer::Claredi
- Inherits:
-
Object
- Object
- 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.
9 10 11 |
# File 'lib/stupidedi/writer/claredi.rb', line 9 def initialize(node) @node = node end |
Instance Method Details
#write(out = "") ⇒ String
14 15 16 17 18 |
# File 'lib/stupidedi/writer/claredi.rb', line 14 def write(out = "") out << "<html><head>\n#{style}</head>\n<body>\n" build(@node, out) out << "</body></html>" end |