Class: Html
- Inherits:
-
Object
- Object
- Html
- Defined in:
- lib/html.rb
Instance Method Summary collapse
-
#initialize(data) ⇒ Html
constructor
A new instance of Html.
- #print ⇒ Object
Constructor Details
#initialize(data) ⇒ Html
Returns a new instance of Html.
4 5 6 |
# File 'lib/html.rb', line 4 def initialize data @data = data.to_json end |
Instance Method Details
#print ⇒ Object
8 9 10 |
# File 'lib/html.rb', line 8 def print File.write("#{Dir.pwd}/docx.html", doc) end |