class Seatbelt::Errors::PropertyNotDefinedYetError

Public Class Methods

new(property_name) click to toggle source
# File lib/seatbelt/errors/errors.rb, line 137
def initialize(property_name)
  @property_name = property_name
end

Public Instance Methods

to_s() click to toggle source
# 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