Class: Portable::Writers::Base
- Inherits:
-
Object
- Object
- Portable::Writers::Base
- Defined in:
- lib/portable/writers/base.rb
Overview
Abstract base for all writers to share.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#document ⇒ Object
readonly
Returns the value of attribute document.
-
#sheet_renderer ⇒ Object
readonly
Returns the value of attribute sheet_renderer.
Instance Method Summary collapse
-
#initialize(document, resolver: Objectable.resolver) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(document, resolver: Objectable.resolver) ⇒ Base
Returns a new instance of Base.
17 18 19 20 21 22 |
# File 'lib/portable/writers/base.rb', line 17 def initialize(document, resolver: Objectable.resolver) @document = Document.make(document, nullable: false) @sheet_renderer = Rendering::Sheet.new(@document, resolver: resolver) freeze end |
Instance Attribute Details
#document ⇒ Object (readonly)
Returns the value of attribute document.
14 15 16 |
# File 'lib/portable/writers/base.rb', line 14 def document @document end |
#sheet_renderer ⇒ Object (readonly)
Returns the value of attribute sheet_renderer.
14 15 16 |
# File 'lib/portable/writers/base.rb', line 14 def sheet_renderer @sheet_renderer end |