Module: Refinery::Flare::HashInitializer

Extended by:
ActiveSupport::Concern
Includes:
ActiveModel::Validations
Included in:
Field, Part, Template
Defined in:
app/models/refinery/flare/hash_initializer.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#initialize(props = {}) ⇒ Object



7
8
9
# File 'app/models/refinery/flare/hash_initializer.rb', line 7

def initialize(props={})
  props.each_pair { |prop, value| send("#{prop}=", value) }
end