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