Exception: NoPrefixMapped

Inherits:
StandardError
  • Object
show all
Defined in:
lib/jekyll/exceptions/NoPrefixMapped.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(property, layout, prefix) ⇒ NoPrefixMapped

Returns a new instance of NoPrefixMapped.



3
4
5
6
# File 'lib/jekyll/exceptions/NoPrefixMapped.rb', line 3

def initialize property, layout, prefix
  @prefix, @property = prefix, property
  super("Their is no mapping defined for #{prefix} in context to #{property}\n in layout: '#{layout}'.")
end

Instance Attribute Details

#prefixObject

Returns the value of attribute prefix.



2
3
4
# File 'lib/jekyll/exceptions/NoPrefixMapped.rb', line 2

def prefix
  @prefix
end

#propertyObject

Returns the value of attribute property.



2
3
4
# File 'lib/jekyll/exceptions/NoPrefixMapped.rb', line 2

def property
  @property
end