Class: Scorm::Command::Help::HelpGroup

Inherits:
Array
  • Object
show all
Defined in:
lib/scorm/commands/help.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(title) ⇒ HelpGroup

Returns a new instance of HelpGroup.


6
7
8
# File 'lib/scorm/commands/help.rb', line 6

def initialize(title)
  @title = title
end

Instance Attribute Details

#titleObject (readonly)

Returns the value of attribute title


4
5
6
# File 'lib/scorm/commands/help.rb', line 4

def title
  @title
end

Instance Method Details

#command(name, description) ⇒ Object


10
11
12
# File 'lib/scorm/commands/help.rb', line 10

def command(name, description)
  self << [name, description]
end

#spaceObject


14
15
16
# File 'lib/scorm/commands/help.rb', line 14

def space
  self << ['', '']
end