Class: SearchUI::Search::State

Inherits:
Struct
  • Object
show all
Defined in:
lib/search_ui/search.rb

Overview

Represents the current state of the search interface.

Instance Attribute Summary collapse

Instance Attribute Details

#answer ⇒ String

the current input string entered by the user

Returns:

  • (String) —

    the current value of answer



25
26
27
# File 'lib/search_ui/search.rb', line 25

def answer
  @answer
end

#selector ⇒ Integer

the index of the currently selected match

Returns:

  • (Integer) —

    the current value of selector



25
26
27
# File 'lib/search_ui/search.rb', line 25

def selector
  @selector
end