class Libis::Format::Cli::SubCommand
Public Class Methods
subcommand_prefix()
click to toggle source
# File lib/libis/format/cli/sub_command.rb, line 15 def self.subcommand_prefix self.name.gsub(%r{.*::}, '').gsub(%r{^[A-Z]}) { |match| match[0].downcase }.gsub(%r{[A-Z]}) { |match| "-#{match[0].downcase}" } end