Module: Inch::CLI
- Defined in:
- lib/inch/cli.rb,
lib/inch/cli/arguments.rb,
lib/inch/cli/command/base.rb,
lib/inch/cli/command/list.rb,
lib/inch/cli/command/show.rb,
lib/inch/cli/trace_helper.rb,
lib/inch/cli/command/stats.rb,
lib/inch/cli/command_parser.rb,
lib/inch/cli/command/console.rb,
lib/inch/cli/command/inspect.rb,
lib/inch/cli/command/suggest.rb,
lib/inch/cli/yardopts_helper.rb,
lib/inch/cli/sparkline_helper.rb,
lib/inch/cli/command/base_list.rb,
lib/inch/cli/command/base_object.rb,
lib/inch/cli/command/output/base.rb,
lib/inch/cli/command/output/list.rb,
lib/inch/cli/command/output/show.rb,
lib/inch/cli/command/options/base.rb,
lib/inch/cli/command/options/list.rb,
lib/inch/cli/command/options/show.rb,
lib/inch/cli/command/output/stats.rb,
lib/inch/cli/command/options/stats.rb,
lib/inch/cli/command/output/console.rb,
lib/inch/cli/command/output/inspect.rb,
lib/inch/cli/command/output/suggest.rb,
lib/inch/cli/command/options/console.rb,
lib/inch/cli/command/options/inspect.rb,
lib/inch/cli/command/options/suggest.rb,
lib/inch/cli/command/options/base_list.rb,
lib/inch/cli/command/options/base_object.rb
Defined Under Namespace
Modules: Command, SparklineHelper, TraceHelper, YardoptsHelper Classes: Arguments, CommandParser
Constant Summary collapse
- COLUMNS =
get_term_columns
Class Method Summary collapse
-
.get_term_columns ⇒ Fixnum
Returns the columns of the terminal window (defaults to 80).
Class Method Details
.get_term_columns ⇒ Fixnum
Returns the columns of the terminal window (defaults to 80)
7 8 9 10 11 12 13 |
# File 'lib/inch/cli.rb', line 7 def get_term_columns str = `stty size` rows_cols = str.split(' ').map(&:to_i) rows_cols[1] rescue 80 end |