module Stronger::PropertyDefinition
Attributes
properties[R]
Public Class Methods
included(base)
click to toggle source
# File lib/stronger/property_definition.rb, line 48 def self.included(base) base.extend(ClassMethods) end
new(**property_values)
click to toggle source
# 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
Private Instance Methods
set_properties(values)
click to toggle source
# File lib/stronger/property_definition.rb, line 62 def set_properties(values) @properties = PropertySet.new(values, self.class.properties) rescue PropertyError => e raise e end