Class: Pixelpress::Document
- Inherits:
-
Object
- Object
- Pixelpress::Document
- Defined in:
- lib/pixelpress/document.rb
Instance Attribute Summary collapse
-
#file_name ⇒ Object
readonly
Returns the value of attribute file_name.
-
#html ⇒ Object
readonly
Returns the value of attribute html.
Instance Method Summary collapse
-
#initialize(html, renderer, options = {}) ⇒ Document
constructor
A new instance of Document.
- #pdf ⇒ Object
Constructor Details
#initialize(html, renderer, options = {}) ⇒ Document
Returns a new instance of Document.
8 9 10 11 12 |
# File 'lib/pixelpress/document.rb', line 8 def initialize(html, renderer, = {}) @html = html @renderer = renderer @file_name = [:file_name] end |
Instance Attribute Details
#file_name ⇒ Object (readonly)
Returns the value of attribute file_name.
6 7 8 |
# File 'lib/pixelpress/document.rb', line 6 def file_name @file_name end |
#html ⇒ Object (readonly)
Returns the value of attribute html.
5 6 7 |
# File 'lib/pixelpress/document.rb', line 5 def html @html end |