Module: TTY
- Defined in:
- lib/tty.rb,
lib/tty/text.rb,
lib/tty/shell.rb,
lib/tty/table.rb,
lib/tty/logger.rb,
lib/tty/system.rb,
lib/tty/vector.rb,
lib/tty/coercer.rb,
lib/tty/plugins.rb,
lib/tty/version.rb,
lib/tty/terminal.rb,
lib/tty/table/row.rb,
lib/tty/table/error.rb,
lib/tty/table/field.rb,
lib/tty/shell/reader.rb,
lib/tty/system/which.rb,
lib/tty/table/border.rb,
lib/tty/table/header.rb,
lib/tty/table/padder.rb,
lib/tty/coercer/float.rb,
lib/tty/coercer/range.rb,
lib/tty/support/utils.rb,
lib/tty/system/editor.rb,
lib/tty/table/columns.rb,
lib/tty/terminal/echo.rb,
lib/tty/terminal/home.rb,
lib/tty/text/distance.rb,
lib/tty/text/wrapping.rb,
lib/tty/plugins/plugin.rb,
lib/tty/shell/question.rb,
lib/tty/shell/response.rb,
lib/tty/table/renderer.rb,
lib/tty/terminal/color.rb,
lib/tty/terminal/pager.rb,
lib/tty/coercer/boolean.rb,
lib/tty/coercer/integer.rb,
lib/tty/shell/statement.rb,
lib/tty/support/unicode.rb,
lib/tty/text/truncation.rb,
lib/tty/shell/suggestion.rb,
lib/tty/support/coercion.rb,
lib/tty/table/border_dsl.rb,
lib/tty/table/column_set.rb,
lib/tty/table/operations.rb,
lib/tty/support/equatable.rb,
lib/tty/table/border/null.rb,
lib/tty/table/indentation.rb,
lib/tty/table/orientation.rb,
lib/tty/table/validatable.rb,
lib/tty/support/conversion.rb,
lib/tty/table/border/ascii.rb,
lib/tty/support/delegatable.rb,
lib/tty/table/border/unicode.rb,
lib/tty/table/border_options.rb,
lib/tty/table/renderer/ascii.rb,
lib/tty/table/renderer/basic.rb,
lib/tty/table/renderer/color.rb,
lib/tty/table/transformation.rb,
lib/tty/terminal/pager/basic.rb,
lib/tty/table/border/row_line.rb,
lib/tty/terminal/pager/system.rb,
lib/tty/table/operation/escape.rb,
lib/tty/table/operation/filter.rb,
lib/tty/table/renderer/unicode.rb,
lib/tty/shell/question/modifier.rb,
lib/tty/table/operation/padding.rb,
lib/tty/table/operation/wrapped.rb,
lib/tty/shell/question/validation.rb,
lib/tty/shell/response_delegation.rb,
lib/tty/table/operation/alignment.rb,
lib/tty/table/operation/truncation.rb,
lib/tty/table/orientation/vertical.rb,
lib/tty/table/orientation/horizontal.rb,
lib/tty/table/operation/alignment_set.rb
Defined Under Namespace
Modules: Coercion, Conversion, Delegatable, Equatable, Unicode, Utils Classes: ArgumentRequired, ArgumentValidation, Coercer, CommandInvocationError, InvalidArgument, InvalidOrientationError, Logger, NoImplementationError, Plugin, Plugins, ResizeError, Shell, System, Table, Terminal, Text, TypeError, UnknownAttributeError, ValidationCoercion, Vector
Constant Summary collapse
- EMPTY_ARRAY =
An empty array used as a default value
Array.new.freeze
- VERSION =
"0.0.11"
Class Method Summary collapse
-
.plugins ⇒ TTY::Plugins
Return shared plugins instance.
-
.shell(input = $stdin, output = $stdout) ⇒ TTY::Shell
Return shared shell instance.
-
.system ⇒ TTY::System
Return shared system object.
-
.terminal ⇒ TTY::Terminal
Return shared terminal instance.
Class Method Details
.plugins ⇒ TTY::Plugins
Return shared plugins instance
151 152 153 |
# File 'lib/tty.rb', line 151 def plugins @plugins ||= Plugins.new end |
.shell(input = $stdin, output = $stdout) ⇒ TTY::Shell
Return shared shell instance
133 134 135 |
# File 'lib/tty.rb', line 133 def shell(input=$stdin, output=$stdout) @shell ||= Shell.new(input, output) end |
.system ⇒ TTY::System
Return shared system object
142 143 144 |
# File 'lib/tty.rb', line 142 def system System end |
.terminal ⇒ TTY::Terminal
Return shared terminal instance
124 125 126 |
# File 'lib/tty.rb', line 124 def terminal @terminal ||= Terminal.new end |