Class: Ansi::Selector::SingleImpl

Inherits:
Impl
  • Object
show all
Defined in:
lib/ansi/selector/single_impl.rb

Constant Summary

Constants inherited from Impl

Impl::CODES, Impl::POSITION_SCRIPT_PATH

Instance Method Summary collapse

Methods inherited from Impl

#all_options_fit?, #select, #terminal_columns, #terminal_lines

Constructor Details

#initialize(options, formatter, preselected) ⇒ SingleImpl

Returns a new instance of SingleImpl.



6
7
8
9
# File 'lib/ansi/selector/single_impl.rb', line 6

def initialize(options, formatter, preselected)
  super
  @highlighted_line_index = preselected
end