Class: Keyword::KWtable
- Inherits:
-
Object
- Object
- Keyword::KWtable
- Defined in:
- lib/ruby_parser_extras.rb
Instance Attribute Summary collapse
-
#id0 ⇒ Object
Returns the value of attribute id0.
-
#id1 ⇒ Object
Returns the value of attribute id1.
-
#name ⇒ Object
Returns the value of attribute name.
-
#state ⇒ Object
Returns the value of attribute state.
Instance Method Summary collapse
-
#initialize(name, id = [], state = nil) ⇒ KWtable
constructor
A new instance of KWtable.
Constructor Details
#initialize(name, id = [], state = nil) ⇒ KWtable
Returns a new instance of KWtable.
821 822 823 824 825 |
# File 'lib/ruby_parser_extras.rb', line 821 def initialize(name, id=[], state=nil) @name = name @id0, @id1 = id @state = state end |
Instance Attribute Details
#id0 ⇒ Object
Returns the value of attribute id0.
820 821 822 |
# File 'lib/ruby_parser_extras.rb', line 820 def id0 @id0 end |
#id1 ⇒ Object
Returns the value of attribute id1.
820 821 822 |
# File 'lib/ruby_parser_extras.rb', line 820 def id1 @id1 end |
#name ⇒ Object
Returns the value of attribute name.
820 821 822 |
# File 'lib/ruby_parser_extras.rb', line 820 def name @name end |
#state ⇒ Object
Returns the value of attribute state.
820 821 822 |
# File 'lib/ruby_parser_extras.rb', line 820 def state @state end |