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.
363 364 365 366 |
# File 'lib/confinement.rb', line 363 def initialize(input_path:, renderers: :guess) self.input_path = input_path self.renderers = renderers end |
Instance Method Details
#body ⇒ Object
368 369 370 |
# File 'lib/confinement.rb', line 368 def body @body ||= input_path.read end |