Class: Nasl::Lvalue
Instance Attribute Summary collapse
-
#ident ⇒ Object
readonly
Returns the value of attribute ident.
-
#indexes ⇒ Object
readonly
Returns the value of attribute indexes.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(tree, *tokens) ⇒ Lvalue
constructor
A new instance of Lvalue.
Methods inherited from Node
Constructor Details
#initialize(tree, *tokens) ⇒ Lvalue
Returns a new instance of Lvalue.
33 34 35 36 37 38 39 40 41 |
# File 'lib/nasl/parser/lvalue.rb', line 33 def initialize(tree, *tokens) super @ident = @tokens.first @indexes = if @tokens.length == 2 then tokens.last else [] end @children << :ident @children << :indexes end |
Instance Attribute Details
#ident ⇒ Object (readonly)
Returns the value of attribute ident.
31 32 33 |
# File 'lib/nasl/parser/lvalue.rb', line 31 def ident @ident end |
#indexes ⇒ Object (readonly)
Returns the value of attribute indexes.
31 32 33 |
# File 'lib/nasl/parser/lvalue.rb', line 31 def indexes @indexes end |