Class: RubyToken::TkVal

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

Instance Attribute Summary collapse

Attributes inherited from Token

#char_no, #line_no, #seek

Instance Method Summary collapse

Constructor Details

#initialize(seek, line_no, char_no, value = nil) ⇒ TkVal

Returns a new instance of TkVal.



46
47
48
49
# File 'lib/irb/ruby-token.rb', line 46

def initialize(seek, line_no, char_no, value = nil)
  super(seek, line_no, char_no)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value



50
51
52
# File 'lib/irb/ruby-token.rb', line 50

def value
  @value
end