class DTK::Client::CLI::Command::Token::Flag
Public Class Methods
new(key, arg_name, desc, opts = {})
click to toggle source
Calls superclass method
# File lib/cli/command/token/flag.rb, line 23 def initialize(key, arg_name, desc, opts = {}) super(key, {:arg_name => arg_name, :desc => desc}.merge(opts)) end
token_type()
click to toggle source
# File lib/cli/command/token/flag.rb, line 31 def self.token_type :flag end
Public Instance Methods
arg_name()
click to toggle source
# File lib/cli/command/token/flag.rb, line 27 def arg_name self[:arg_name] end
ref()
click to toggle source
# File lib/cli/command/token/flag.rb, line 35 def ref "#{key_prefix}#{key} #{self[:arg_name]}" end