Module: Freyia::Shell
- Included in:
- Setup
- Defined in:
- lib/freyia/shell.rb,
lib/freyia/shell/basic.rb,
lib/freyia/shell/color.rb,
lib/freyia/shell/terminal.rb,
lib/freyia/shell/table_printer.rb,
lib/freyia/shell/column_printer.rb,
lib/freyia/shell/wrapped_printer.rb
Defined Under Namespace
Modules: Terminal Classes: Basic, Color, ColumnPrinter, TablePrinter, WrappedPrinter
Constant Summary collapse
- SHELL_DELEGATED_METHODS =
[:ask, :error, :set_color, :yes?, :no?, :say, :say_error, :say_status, :print_in_columns, :print_table, :print_wrapped, :file_collision, :terminal_width,].freeze
Instance Method Summary collapse
-
#with_padding ⇒ Object
Yields the given block with padding.
Instance Method Details
#with_padding ⇒ Object
Yields the given block with padding.
23 24 25 26 27 28 |
# File 'lib/freyia/shell.rb', line 23 def with_padding shell.padding += 1 yield ensure shell.padding -= 1 end |