Method: Catlass::DSLContext#method_missing
- Defined in:
- lib/catlass/dsl_context.rb
#method_missing(method_name, *args, &block) ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'lib/catlass/dsl_context.rb', line 17 def method_missing(method_name, *args, &block) if [:Job].include?(method_name) hash = dslh_eval(block) hash['attributes']['name'] = args[0] @jobs << hash else super end end |