Class: GLI::Commands::HelpModules::VerbatimWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/gli/commands/help_modules/verbatim_wrapper.rb

Overview

Leaves text formatting exactly as it was received. Doesn’t strip anything.

Instance Method Summary collapse

Constructor Details

#initialize(width, indent) ⇒ VerbatimWrapper

Args are ignored entirely; this keeps it consistent with the TextWrapper interface



7
8
# File 'lib/gli/commands/help_modules/verbatim_wrapper.rb', line 7

def initialize(width,indent)
end

Instance Method Details

#wrap(text) ⇒ Object



10
11
12
# File 'lib/gli/commands/help_modules/verbatim_wrapper.rb', line 10

def wrap(text)
  return String(text)
end