class CommandTree::Group
A group of commands
Attributes
desc[R]
name[R]
prefix[R]
Public Class Methods
new(prefix, name, options = {})
click to toggle source
# File lib/command_tree/group.rb, line 6 def initialize(prefix, name, options = {}) @prefix = prefix @name = name @desc = options[:desc] end
Public Instance Methods
execute()
click to toggle source
# File lib/command_tree/group.rb, line 12 def execute print_banner end
Private Instance Methods
pretty_description()
click to toggle source
# File lib/command_tree/group.rb, line 27 def pretty_description desc.to_s.light_black if desc end
pretty_name()
click to toggle source
# File lib/command_tree/group.rb, line 23 def pretty_name name.light_magenta.bold if name end