Class | HighLineExtension |
In: |
lib/rhc/highline_extensions.rb
|
Parent: | HighLine |
Add specific improved functionality
debug | [W] |
Executes block or outputs statement with indentation
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