Class: MM::Console::SimpleCommand::Section

Inherits:
Object
  • Object
show all
Includes:
Sections
Defined in:
lib/mm/console/simple_command/help.rb

Instance Method Summary collapse

Methods included from Sections

#basic_commands, #context, #integrating_with_mingle, #quick_start, #transition, #variables

Constructor Details

#initialize(name) ⇒ Section

Returns a new instance of Section.



102
103
104
# File 'lib/mm/console/simple_command/help.rb', line 102

def initialize(name)
  @name = name
end

Instance Method Details

#execute(runtime) ⇒ Object



106
107
108
# File 'lib/mm/console/simple_command/help.rb', line 106

def execute(runtime)
  send(@name.downcase.split(' ').join('_'), runtime)
end