Class HighLineExtension
In: lib/rhc/highline_extensions.rb
Parent: HighLine

Add specific improved functionality

Methods

Attributes

debug  [W] 

Public Instance methods

Outputs indentation with current settings

paragraph

highline helper which creates a section with margins of 1, 1

OVERRIDE

section

highline helper mixin which correctly formats block of say and ask output to have correct margins. section remembers the last margin used and calculates the relitive margin from the previous section. For example:

section(bottom=1) do

  say "Hello"

end

section(top=1) do

  say "World"

end

Will output:

> Hello > > World

with only one newline between the two. Biggest margin wins.

params:

 top - top margin specified in lines
 bottom - bottom margin specified in line

given an array of arrays "items", construct an array of strings that can be used to print in tabular form.

[Validate]