Module: Quandl::Command::Task::Commandable
- Extended by:
- ActiveSupport::Concern
- Included in:
- Quandl::Command::Task
- Defined in:
- lib/quandl/command/task/commandable.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
81 82 83 84 85 86 |
# File 'lib/quandl/command/task/commandable.rb', line 81 def execute # fire a subcommand if specified return self.send(args.shift) if args.first.present? && self.respond_to?(args.first) # otherwise show syntax info(syntax) end |
#initialize(args, options) ⇒ Object
88 89 90 91 |
# File 'lib/quandl/command/task/commandable.rb', line 88 def initialize(args, ) self.args = args self. = end |