Module: Eskimo::ASCII

Defined in:
gems/eskimo-ascii/lib/eskimo/ascii/components/wrap.rb,
gems/eskimo-ascii/lib/eskimo/ascii.rb,
gems/eskimo-ascii/lib/eskimo/ascii/version.rb,
gems/eskimo-ascii/lib/eskimo/ascii/component.rb,
gems/eskimo-ascii/lib/eskimo/ascii/constants.rb,
gems/eskimo-ascii/lib/eskimo/ascii/components/strip.rb,
gems/eskimo-ascii/lib/eskimo/ascii/components/style.rb,
gems/eskimo-ascii/lib/eskimo/ascii/components/either.rb,
gems/eskimo-ascii/lib/eskimo/ascii/components/gutter.rb,
gems/eskimo-ascii/lib/eskimo/ascii/components/indent.rb,
gems/eskimo-ascii/lib/eskimo/ascii/components/spacer.rb,
gems/eskimo-ascii/lib/eskimo/ascii/components/squeeze.rb,
gems/eskimo-ascii/lib/eskimo/ascii/components/truncate.rb,
gems/eskimo-ascii/lib/eskimo/ascii/components/highlight.rb,
gems/eskimo-ascii/lib/eskimo/ascii/components/line_break.rb,
gems/eskimo-ascii/lib/eskimo/ascii/components/soft_break.rb,
gems/eskimo-ascii/lib/eskimo/ascii/components/strip_left.rb,
gems/eskimo-ascii/lib/eskimo/ascii/components/strip_right.rb,
gems/eskimo-ascii/lib/eskimo/ascii/components/did_you_mean.rb,
gems/eskimo-ascii/lib/eskimo/ascii/components/truncate_rear.rb,
gems/eskimo-ascii/lib/eskimo/ascii/components/highlight_column.rb

Overview

Wrap a block text with newlines at a certain threshold.

Wrap.new(width: 3) do
  "foobar"
end
# => "foo"
#    "bar"

Defined Under Namespace

Modules: Constants Classes: Component, DidYouMean, Either, Gutter, Highlight, HighlightColumn, Indent, LineBreak, SoftBreak, Spacer, Squeeze, Strip, StripLeft, StripRight, Style, Truncate, TruncateRear, Wrap

Constant Summary collapse

VERSION =
'3.0.0'