Class: SearchUI::Search::State
- Inherits:
-
Struct
- Object
- Struct
- SearchUI::Search::State
- Defined in:
- lib/search_ui/search.rb
Overview
Represents the current state of the search interface.
Instance Attribute Summary collapse
-
#answer ⇒ String
the current input string entered by the user.
-
#selector ⇒ Integer
the index of the currently selected match.
Instance Attribute Details
#answer ⇒ String
the current input string entered by the user
25 26 27 |
# File 'lib/search_ui/search.rb', line 25 def answer @answer end |
#selector ⇒ Integer
the index of the currently selected match
25 26 27 |
# File 'lib/search_ui/search.rb', line 25 def selector @selector end |