Method: Easyhooks::Specification#initialize
- Defined in:
- lib/easyhooks/specification.rb
#initialize(name, type, args = {}, &specification) ⇒ Specification
16 17 18 19 20 21 22 23 |
# File 'lib/easyhooks/specification.rb', line 16 def initialize(name, type, args = {}, &specification) @name = name @type = type @global_args = args.merge({ type: type }) @triggers = {} @actions = {} instance_eval(&specification) end |