class DTK::Client::CLI::Command::Token::Switch

Constants

DEFAULT_OPTS

Public Class Methods

new(key, desc, opts = {}) click to toggle source
Calls superclass method
# File lib/cli/command/token/switch.rb, line 22
def initialize(key, desc, opts = {})
  super(key, DEFAULT_OPTS.merge(:desc => desc).merge(opts))
end
token_type() click to toggle source
# File lib/cli/command/token/switch.rb, line 26
def self.token_type
  :switch
end

Public Instance Methods

ref() click to toggle source
# File lib/cli/command/token/switch.rb, line 30
def ref
  "#{key_prefix}#{key}"
end