Methods

Class/Module Index [+]

Quicksearch

HammerCLI::Output::Formatters::LongTextFormatter

Constants

INDENT

Public Class Methods

new(options = {}) click to toggle source
# File lib/hammer_cli/output/formatters.rb, line 133
def initialize(options = {})
  @indent = options[:indent].nil? ? true : options[:indent]
end

Public Instance Methods

format(text) click to toggle source
# File lib/hammer_cli/output/formatters.rb, line 141
def format(text)
  text = text.to_s.indent_with(INDENT) if @indent
  "\n#{text}"
end
tags() click to toggle source
# File lib/hammer_cli/output/formatters.rb, line 137
def tags
  [:screen]
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.