Method: Jets::Processors::Deducer#process_type
- Defined in:
- lib/jets/processors/deducer.rb
#process_type ⇒ Object
process_type is key. It can be either “controller” or “job”. It is used to deduce the rest of the methods: code, path.
29 30 31 32 33 34 35 |
# File 'lib/jets/processors/deducer.rb', line 29 def process_type if shared? "function" # all app/shared/functions are always function process_type else @handler.split('/')[1].singularize # controller, job, rule, etc end end |