Class: GLI::Commands::HelpModules::VerbatimWrapper
- Inherits:
-
Object
- Object
- GLI::Commands::HelpModules::VerbatimWrapper
- 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
-
#initialize(width, indent) ⇒ VerbatimWrapper
constructor
Args are ignored entirely; this keeps it consistent with the TextWrapper interface.
- #wrap(text) ⇒ Object
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 |