Class: Redcar::DocumentSearch::FindCommandBase
- Inherits:
-
Redcar::DocumentCommand
- Object
- Command
- TabCommand
- Redcar::DocumentCommand
- Redcar::DocumentSearch::FindCommandBase
- Includes:
- FindCommandMixin
- Defined in:
- plugins/document_search/lib/document_search/commands.rb
Overview
Base class for find commands.
Direct Known Subclasses
Constant Summary
Constants included from Observable
Instance Attribute Summary (collapse)
-
- (Object) always_start_within_selection
readonly
Returns the value of attribute always_start_within_selection.
-
- (Object) options
readonly
Returns the value of attribute options.
-
- (Object) query
readonly
Returns the value of attribute query.
Attributes inherited from Command
Instance Method Summary (collapse)
-
- (FindCommandBase) initialize(q, opt)
constructor
description here.
Methods included from FindCommandMixin
#is_valid, #make_literal_query, #make_regex_query, #replace_selection_if_match, #select_next_match, #select_previous_match, #select_range, #select_range_bytes, #selection_byte_offsets
Methods inherited from Redcar::DocumentCommand
#_finished, #run_in_focussed_tab_edit_view
Methods inherited from Command
active_changed, #environment, inherited, #inspect, norecord, record?, #run
Methods included from Sensitive
#active?, #sensitivities, #sensitivity_names, #sensitize
Methods included from Observable
#add_listener, #notify_listeners, #remove_listener
Constructor Details
- (FindCommandBase) initialize(q, opt)
description here
151 152 153 154 |
# File 'plugins/document_search/lib/document_search/commands.rb', line 151 def initialize(q, opt) @options = opt @query = opt.is_regex ? make_regex_query(q, opt) : make_literal_query(q, opt) end |
Instance Attribute Details
- (Object) always_start_within_selection (readonly)
Returns the value of attribute always_start_within_selection
148 149 150 |
# File 'plugins/document_search/lib/document_search/commands.rb', line 148 def always_start_within_selection @always_start_within_selection end |
- (Object) options (readonly)
Returns the value of attribute options
148 149 150 |
# File 'plugins/document_search/lib/document_search/commands.rb', line 148 def @options end |
- (Object) query (readonly)
Returns the value of attribute query
148 149 150 |
# File 'plugins/document_search/lib/document_search/commands.rb', line 148 def query @query end |