Exception: Seatbelt::Errors::PropertyNotDefinedYetError
- Inherits:
-
StandardError
- Object
- StandardError
- Seatbelt::Errors::PropertyNotDefinedYetError
- Defined in:
- lib/seatbelt/errors/errors.rb
Instance Method Summary collapse
-
#initialize(property_name) ⇒ PropertyNotDefinedYetError
constructor
A new instance of PropertyNotDefinedYetError.
- #to_s ⇒ Object
Constructor Details
#initialize(property_name) ⇒ PropertyNotDefinedYetError
Returns a new instance of PropertyNotDefinedYetError.
137 138 139 |
# File 'lib/seatbelt/errors/errors.rb', line 137 def initialize(property_name) @property_name = property_name end |
Instance Method Details
#to_s ⇒ Object
141 142 143 144 145 146 |
# File 'lib/seatbelt/errors/errors.rb', line 141 def to_s <<-MESSAGE.gsub(/^\s+/, "") You try to define a property as accessible that is not defined yet. Use define_property :#{@property_name} to define your property first. MESSAGE end |