Module: Kiba::Extend::Jobs::Parser
- Included in:
- Kiba::Extend::Jobs, BaseJob
- Defined in:
- lib/kiba/extend/jobs/parser.rb
Overview
Instance Method Summary collapse
Instance Method Details
#parse_job(control, context, *job_segments) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/kiba/extend/jobs/parser.rb', line 7 def parse_job(control, context, *job_segments) job_segments = job_segments.flatten job_segments.compact.each do |segment| context.instance_eval(&segment) end control end |