Class: Confinement::Layout

Inherits:
Object
  • Object
show all
Includes:
Blob, RenderableBlob
Defined in:
lib/confinement.rb

Instance Attribute Summary

Attributes included from RenderableBlob

#renderers

Attributes included from Blob

#input_path

Instance Method Summary collapse

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

#bodyObject



483
484
485
# File 'lib/confinement.rb', line 483

def body
  @body ||= input_path.read
end