Class: RubyToken::TkOPASGN

Inherits:
TkOp show all
Defined in:
lib/irb/ruby-token.rb

Instance Attribute Summary collapse

Attributes inherited from TkOp

#name

Attributes inherited from Token

#char_no, #line_no, #seek

Instance Method Summary collapse

Constructor Details

#initialize(seek, line_no, char_no, op) ⇒ TkOPASGN

Returns a new instance of TkOPASGN.



57
58
59
60
61
# File 'lib/irb/ruby-token.rb', line 57

def initialize(seek, line_no, char_no, op)
  super(seek, line_no, char_no)
  op = TkReading2Token[op][0] unless op.kind_of?(Symbol)
  @op = op
end

Instance Attribute Details

#opObject (readonly)

Returns the value of attribute op



62
63
64
# File 'lib/irb/ruby-token.rb', line 62

def op
  @op
end