Exception: Peck::Error
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
- #count_as?(type) ⇒ Boolean
-
#initialize(type, message) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(type, message) ⇒ Error
Returns a new instance of Error.
7 8 9 10 |
# File 'lib/peck/error.rb', line 7 def initialize(type, ) @type = type.to_s super end |
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
5 6 7 |
# File 'lib/peck/error.rb', line 5 def type @type end |
Instance Method Details
#count_as?(type) ⇒ Boolean
12 13 14 |
# File 'lib/peck/error.rb', line 12 def count_as?(type) @type == type.to_s end |