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.



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

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



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

def op
  @op
end