Exception: AttributesReader::MissingAttributeError
- Inherits:
-
StandardError
- Object
- StandardError
- AttributesReader::MissingAttributeError
- Defined in:
- lib/attributes_reader.rb
Instance Method Summary collapse
-
#initialize(attr_name, class_name) ⇒ MissingAttributeError
constructor
A new instance of MissingAttributeError.
- #message ⇒ Object
Constructor Details
#initialize(attr_name, class_name) ⇒ MissingAttributeError
Returns a new instance of MissingAttributeError.
21 22 23 24 25 |
# File 'lib/attributes_reader.rb', line 21 def initialize attr_name, class_name @attr = attr_name @class = class_name super() end |
Instance Method Details
#message ⇒ Object
27 28 29 |
# File 'lib/attributes_reader.rb', line 27 def return "Missing Attribute #{@attr} for #{@class}" end |