Exception: Krane::Renderer::InvalidPartialError

Inherits:
InvalidTemplateError show all
Defined in:
lib/krane/renderer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, parents: [], content: nil, filename:) ⇒ InvalidPartialError

Returns a new instance of InvalidPartialError.



12
13
14
15
# File 'lib/krane/renderer.rb', line 12

def initialize(msg, parents: [], content: nil, filename:)
  @parents = parents
  super(msg, content: content, filename: filename)
end

Instance Attribute Details

#contentObject

Returns the value of attribute content.



11
12
13
# File 'lib/krane/renderer.rb', line 11

def content
  @content
end

#filenameObject

Returns the value of attribute filename.



11
12
13
# File 'lib/krane/renderer.rb', line 11

def filename
  @filename
end

#parentsObject

Returns the value of attribute parents.



11
12
13
# File 'lib/krane/renderer.rb', line 11

def parents
  @parents
end