class HammerCLI::Help::Note
Public Class Methods
new(text, options = {})
click to toggle source
Calls superclass method
# File lib/hammer_cli/help/definition/note.rb, line 4 def initialize(text, options = {}) @label = options[:label] || _('NOTE') super end
Public Instance Methods
build_string()
click to toggle source
# File lib/hammer_cli/help/definition/note.rb, line 9 def build_string @text end
Protected Instance Methods
build_definition(content)
click to toggle source
# File lib/hammer_cli/help/definition/note.rb, line 15 def build_definition(content) @text = heading + ' ' @text += content.to_s @definition = Definition.new([self]) end
Private Instance Methods
heading()
click to toggle source
# File lib/hammer_cli/help/definition/note.rb, line 23 def heading @label += ':' @label = HighLine.color(@label, :bold) if @richtext @label end