Class: Nasl::Assignment
Instance Attribute Summary collapse
-
#expr ⇒ Object
readonly
Returns the value of attribute expr.
-
#lval ⇒ Object
readonly
Returns the value of attribute lval.
-
#op ⇒ Object
readonly
Returns the value of attribute op.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(tree, *tokens) ⇒ Assignment
constructor
A new instance of Assignment.
Methods inherited from Node
Constructor Details
#initialize(tree, *tokens) ⇒ Assignment
Returns a new instance of Assignment.
33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/nasl/parser/assigment.rb', line 33 def initialize(tree, *tokens) super @lval = @tokens[0] @op = @tokens[1] @expr = @tokens[2] @children << :op @children << :lval @children << :expr end |
Instance Attribute Details
#expr ⇒ Object (readonly)
Returns the value of attribute expr.
31 32 33 |
# File 'lib/nasl/parser/assigment.rb', line 31 def expr @expr end |
#lval ⇒ Object (readonly)
Returns the value of attribute lval.
31 32 33 |
# File 'lib/nasl/parser/assigment.rb', line 31 def lval @lval end |
#op ⇒ Object (readonly)
Returns the value of attribute op.
31 32 33 |
# File 'lib/nasl/parser/assigment.rb', line 31 def op @op end |