Class: Opal::Keywords::KeywordTable

Inherits:
Object
  • Object
show all
Defined in:
opal/lib/opal/parser/keywords.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, id, state) ⇒ KeywordTable

Returns a new instance of KeywordTable



7
8
9
10
11
# File 'opal/lib/opal/parser/keywords.rb', line 7

def initialize(name, id, state)
  @name = name
  @id = id
  @state = state
end

Instance Attribute Details

#idObject

Returns the value of attribute id



5
6
7
# File 'opal/lib/opal/parser/keywords.rb', line 5

def id
  @id
end

#nameObject

Returns the value of attribute name



5
6
7
# File 'opal/lib/opal/parser/keywords.rb', line 5

def name
  @name
end

#stateObject

Returns the value of attribute state



5
6
7
# File 'opal/lib/opal/parser/keywords.rb', line 5

def state
  @state
end