Class: Oselvar::Var::Core::Hit
- Inherits:
-
Data
- Object
- Data
- Oselvar::Var::Core::Hit
- Defined in:
- lib/oselvar/var/core/matcher.rb
Overview
One successful expression match inside a sentence. Offsets are UTF-16.
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#expression ⇒ Object
readonly
Returns the value of attribute expression.
-
#formats ⇒ Object
readonly
Returns the value of attribute formats.
-
#match_end ⇒ Object
readonly
Returns the value of attribute match_end.
-
#match_start ⇒ Object
readonly
Returns the value of attribute match_start.
-
#param_spans ⇒ Object
readonly
Returns the value of attribute param_spans.
-
#step_def ⇒ Object
readonly
Returns the value of attribute step_def.
Instance Method Summary collapse
-
#initialize(expression:, step_def:, match_start:, match_end:, args:, param_spans:, formats: []) ⇒ Hit
constructor
A new instance of Hit.
Constructor Details
#initialize(expression:, step_def:, match_start:, match_end:, args:, param_spans:, formats: []) ⇒ Hit
Returns a new instance of Hit.
12 13 14 |
# File 'lib/oselvar/var/core/matcher.rb', line 12 def initialize(expression:, step_def:, match_start:, match_end:, args:, param_spans:, formats: []) super end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args
11 12 13 |
# File 'lib/oselvar/var/core/matcher.rb', line 11 def args @args end |
#expression ⇒ Object (readonly)
Returns the value of attribute expression
11 12 13 |
# File 'lib/oselvar/var/core/matcher.rb', line 11 def expression @expression end |
#formats ⇒ Object (readonly)
Returns the value of attribute formats
11 12 13 |
# File 'lib/oselvar/var/core/matcher.rb', line 11 def formats @formats end |
#match_end ⇒ Object (readonly)
Returns the value of attribute match_end
11 12 13 |
# File 'lib/oselvar/var/core/matcher.rb', line 11 def match_end @match_end end |
#match_start ⇒ Object (readonly)
Returns the value of attribute match_start
11 12 13 |
# File 'lib/oselvar/var/core/matcher.rb', line 11 def match_start @match_start end |
#param_spans ⇒ Object (readonly)
Returns the value of attribute param_spans
11 12 13 |
# File 'lib/oselvar/var/core/matcher.rb', line 11 def param_spans @param_spans end |
#step_def ⇒ Object (readonly)
Returns the value of attribute step_def
11 12 13 |
# File 'lib/oselvar/var/core/matcher.rb', line 11 def step_def @step_def end |