Module: ClassX::AttributeMethods::ClassMethods::TriggerArrayProc

Defined in:
lib/classx/attribute.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#trigger(parent, val) ⇒ Object



161
162
163
164
165
# File 'lib/classx/attribute.rb', line 161

def trigger parent, val
  config[:trigger].each do |trg|
    trg.call(parent, val)
  end
end