Exception: Seatbelt::Errors::PropertyNotDefinedYetError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/seatbelt/errors/errors.rb

Instance Method Summary collapse

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_sObject



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