Method: Innate::Options#trigger

Defined in:
lib/innate/options/dsl.rb

#trigger(key, &block) ⇒ Object

Add a block that will be called when a new value is set.



94
95
96
# File 'lib/innate/options/dsl.rb', line 94

def trigger(key, &block)
  @hash[key.to_sym][:trigger] = block
end