Class: RemLint::Trigger::Clause
- Inherits:
-
Struct
- Object
- Struct
- RemLint::Trigger::Clause
- Defined in:
- lib/remlint/trigger.rb
Instance Attribute Summary collapse
-
#end_offset ⇒ Object
Returns the value of attribute end_offset.
-
#keyword ⇒ Object
Returns the value of attribute keyword.
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#token_index ⇒ Object
Returns the value of attribute token_index.
-
#token_width ⇒ Object
Returns the value of attribute token_width.
Instance Method Summary collapse
-
#argument_index ⇒ Object
Where the clause's argument starts, in tokens.
- #name ⇒ Object
Instance Attribute Details
#end_offset ⇒ Object
Returns the value of attribute end_offset
23 24 25 |
# File 'lib/remlint/trigger.rb', line 23 def end_offset @end_offset end |
#keyword ⇒ Object
Returns the value of attribute keyword
23 24 25 |
# File 'lib/remlint/trigger.rb', line 23 def keyword @keyword end |
#offset ⇒ Object
Returns the value of attribute offset
23 24 25 |
# File 'lib/remlint/trigger.rb', line 23 def offset @offset end |
#token_index ⇒ Object
Returns the value of attribute token_index
23 24 25 |
# File 'lib/remlint/trigger.rb', line 23 def token_index @token_index end |
#token_width ⇒ Object
Returns the value of attribute token_width
23 24 25 |
# File 'lib/remlint/trigger.rb', line 23 def token_width @token_width end |
Instance Method Details
#argument_index ⇒ Object
Where the clause's argument starts, in tokens. A hyphenated keyword
such as MAX-OVERDUE occupies three of them, so this is not always
token_index + 1.
38 39 40 |
# File 'lib/remlint/trigger.rb', line 38 def argument_index token_index + token_width end |
#name ⇒ Object
31 32 33 |
# File 'lib/remlint/trigger.rb', line 31 def name keyword.name end |