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.



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

#bodyObject



368
369
370
# File 'lib/confinement.rb', line 368

def body
  @body ||= input_path.read
end