Exception: Httpdoc::Rendering::UndefinedVariableError

Inherits:
Exception
  • Object
show all
Defined in:
lib/httpdoc/rendering.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ UndefinedVariableError

Returns a new instance of UndefinedVariableError.



9
10
11
12
# File 'lib/httpdoc/rendering.rb', line 9

def initialize(name)
  super("Undefined variable #{name}")
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



13
14
15
# File 'lib/httpdoc/rendering.rb', line 13

def name
  @name
end