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