Exception: Hellobase::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Hellobase::Error
- Defined in:
- lib/hellobase.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, *args) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(type, *args) ⇒ Error
Returns a new instance of Error.
21 22 23 24 25 26 |
# File 'lib/hellobase.rb', line 21 def initialize(type, *args) @type = type @args = args super "#{type}: #{args.inspect}" end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
19 20 21 |
# File 'lib/hellobase.rb', line 19 def type @type end |