Module: Mcoin::Command::HasType
- Included in:
- Ticker
- Defined in:
- lib/mcoin/command/ext/has_type.rb
Overview
:nodoc:
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/mcoin/command/ext/has_type.rb', line 7 def self.included(base) base.option(:single, :type, '-t', '--type TYPE', Mcoin::TYPES, "Available: #{Mcoin::TYPES.join(', ')}") base.option(:single, :currency, '-c', '--currency CURRENCY', Mcoin::CURRENCY, "Available: #{Mcoin::CURRENCY.join(', ')}") end |