class SKP::SubCommandBase
Public Class Methods
subcommand_prefix()
click to toggle source
# File lib/skp/cli/sub_command_base.rb, line 7 def self.subcommand_prefix name.gsub(%r{.*::}, "").gsub(%r{^[A-Z]}) { |match| match[0].downcase } .gsub(%r{[A-Z]}) { |match| "-#{match[0].downcase}" } end
Public Instance Methods
client()
click to toggle source
# File lib/skp/cli/sub_command_base.rb, line 13 def client @client ||= SKP::Client.new end