module DTK::Client::CLI::Command::Token::Mixin
Attributes
key[R]
Public Class Methods
new(key, hash = {})
click to toggle source
Calls superclass method
# File lib/cli/command/token/mixin.rb, line 22 def initialize(key, hash = {}) super() replace(hash) @key = key end
Public Instance Methods
add_overrides(overrides)
click to toggle source
Each concrete class must define def ref - returns string end def token_type - symbol end
# File lib/cli/command/token/mixin.rb, line 34 def add_overrides(overrides) merge(overrides) end
Private Instance Methods
key_prefix()
click to toggle source
# File lib/cli/command/token/mixin.rb, line 40 def key_prefix key.to_s.size == 1 ? '-' : '--' end