Class: RubyParserStuff::Keyword::KWtable

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, id = [], state = nil) ⇒ KWtable

Returns a new instance of KWtable.



1173
1174
1175
1176
1177
# File 'lib/ruby_parser_extras.rb', line 1173

def initialize(name, id=[], state=nil)
  @name  = name
  @id0, @id1 = id
  @state = state
end

Instance Attribute Details

#id0Object

Returns the value of attribute id0.



1172
1173
1174
# File 'lib/ruby_parser_extras.rb', line 1172

def id0
  @id0
end

#id1Object

Returns the value of attribute id1.



1172
1173
1174
# File 'lib/ruby_parser_extras.rb', line 1172

def id1
  @id1
end

#nameObject

Returns the value of attribute name.



1172
1173
1174
# File 'lib/ruby_parser_extras.rb', line 1172

def name
  @name
end

#stateObject

Returns the value of attribute state.



1172
1173
1174
# File 'lib/ruby_parser_extras.rb', line 1172

def state
  @state
end