Class: Confinement::Layout
- Inherits:
-
Object
- Object
- Confinement::Layout
- Includes:
- Blob, RenderableBlob
- Defined in:
- lib/confinement.rb
Instance Attribute Summary
Attributes included from RenderableBlob
Attributes included from Blob
Instance Method Summary collapse
- #body ⇒ Object
-
#initialize(input_path:, renderers: :guess) ⇒ Layout
constructor
A new instance of Layout.
Constructor Details
#initialize(input_path:, renderers: :guess) ⇒ Layout
Returns a new instance of Layout.
478 479 480 481 |
# File 'lib/confinement.rb', line 478 def initialize(input_path:, renderers: :guess) self.input_path = input_path self.renderers = renderers end |
Instance Method Details
#body ⇒ Object
483 484 485 |
# File 'lib/confinement.rb', line 483 def body @body ||= input_path.read end |