Class: Rubycop::Analyzer::Ruby::Token
- Defined in:
- lib/rubycop/analyzer/ruby/tokens.rb
Instance Attribute Summary collapse
-
#position ⇒ Object
readonly
Returns the value of attribute position.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(token, position) ⇒ Token
constructor
A new instance of Token.
Methods inherited from Node
Constructor Details
#initialize(token, position) ⇒ Token
Returns a new instance of Token.
5 6 7 8 |
# File 'lib/rubycop/analyzer/ruby/tokens.rb', line 5 def initialize(token, position) @token = token @position = position end |
Instance Attribute Details
#position ⇒ Object (readonly)
Returns the value of attribute position.
11 12 13 |
# File 'lib/rubycop/analyzer/ruby/tokens.rb', line 11 def position @position end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
10 11 12 |
# File 'lib/rubycop/analyzer/ruby/tokens.rb', line 10 def token @token end |