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.



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

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.



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

def value
  @value
end