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.



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

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.



64
65
66
# File 'lib/irb/ruby-token.rb', line 64

def op
  @op
end