class SubCommandBase
Thor with subcommands that work correctly with help
Public Class Methods
subcommand_prefix()
click to toggle source
Set the subcommand prefix.
# File lib/takelage/lib/subcmd.rb, line 13 def self.subcommand_prefix name.gsub(/.*::/, '') .gsub(/^[A-Z]/) { |match| match[0].downcase } .gsub(/[A-Z]/) { |match| " #{match[0].downcase}" } end