Exception: SparkleFormation::Error::NotFound
- Inherits:
-
KeyError
- Object
- KeyError
- SparkleFormation::Error::NotFound
- Defined in:
- lib/sparkle_formation/error.rb
Defined Under Namespace
Classes: Component, Dynamic, Registry, Template
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(*args) ⇒ NotFound
constructor
A new instance of NotFound.
Constructor Details
#initialize(*args) ⇒ NotFound
Returns a new instance of NotFound.
10 11 12 13 14 15 |
# File 'lib/sparkle_formation/error.rb', line 10 def initialize(*args) opts = args.detect{|o| o.is_a?(Hash)} args.delete(opts) if opts super(args) @name = opts[:name] if opts end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/sparkle_formation/error.rb', line 8 def name @name end |