Module: Stronger::PropertyDefinition

Defined in:
lib/stronger/property_definition.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



48
49
50
# File 'lib/stronger/property_definition.rb', line 48

def self.included(base)
  base.extend(ClassMethods)
end

Instance Method Details

#initialize(**property_values) ⇒ Object



52
53
54
55
56
57
# File 'lib/stronger/property_definition.rb', line 52

def initialize(**property_values)
  set_properties(property_values)
rescue PropertyError => e
  e.set_backtrace caller
  raise e
end