Class: HammerCLI::Help::Note

Inherits:
Text show all
Defined in:
lib/hammer_cli/help/definition/note.rb

Constant Summary

Constants inherited from AbstractItem

AbstractItem::INDENT_STEP

Instance Attribute Summary

Attributes inherited from AbstractItem

#definition, #id, #richtext

Instance Method Summary collapse

Methods inherited from AbstractItem

indent

Constructor Details

#initialize(text, options = {}) ⇒ Note

Returns a new instance of Note.



4
5
6
7
# File 'lib/hammer_cli/help/definition/note.rb', line 4

def initialize(text, options = {})
  @label = options[:label] || _('NOTE')
  super
end

Instance Method Details

#build_stringObject



9
10
11
# File 'lib/hammer_cli/help/definition/note.rb', line 9

def build_string
  @text
end