Class: Interrotron::Token

Inherits:
Object
  • Object
show all
Defined in:
lib/interrotron.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, value) ⇒ Token

Returns a new instance of Token.



40
41
42
43
# File 'lib/interrotron.rb', line 40

def initialize(type,value)
  @type = type
  @value = value
end

Instance Attribute Details

#typeObject

Returns the value of attribute type.



39
40
41
# File 'lib/interrotron.rb', line 39

def type
  @type
end

#valueObject

Returns the value of attribute value.



39
40
41
# File 'lib/interrotron.rb', line 39

def value
  @value
end