Class: RBelly::Nodes::ImportNode
- Defined in:
- lib/rbelly/nodes/bellejs/import_node.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
Returns the value of attribute file.
Attributes inherited from Node
#comments, #filename, #line, #value
Instance Method Summary collapse
-
#initialize(file_name) ⇒ ImportNode
constructor
A new instance of ImportNode.
Methods inherited from Node
#==, #===, #each, #pointcut, #to_dots, #to_ecma, #to_real_sexp, #to_sexp
Methods included from Visitable
Constructor Details
#initialize(file_name) ⇒ ImportNode
Returns a new instance of ImportNode.
5 6 7 8 |
# File 'lib/rbelly/nodes/bellejs/import_node.rb', line 5 def initialize(file_name) super(file_name) @file = file_name end |
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file.
4 5 6 |
# File 'lib/rbelly/nodes/bellejs/import_node.rb', line 4 def file @file end |