Exception: Httpdoc::Rendering::UndefinedConstantError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ UndefinedConstantError

Returns a new instance of UndefinedConstantError.



17
18
19
20
# File 'lib/httpdoc/rendering.rb', line 17

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



21
22
23
# File 'lib/httpdoc/rendering.rb', line 21

def name
  @name
end