Class: RubyCop::Ruby::Token
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.
4 5 6 7 |
# File 'lib/ruby_cop/ruby/tokens.rb', line 4 def initialize(token, position) @token = token @position = position end |
Instance Attribute Details
#position ⇒ Object (readonly)
Returns the value of attribute position.
10 11 12 |
# File 'lib/ruby_cop/ruby/tokens.rb', line 10 def position @position end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
9 10 11 |
# File 'lib/ruby_cop/ruby/tokens.rb', line 9 def token @token end |