Class: Vertigo::Use

Inherits:
AstNode show all
Defined in:
lib/vertigo/ast_vertigo_rkgen.rb

Instance Attribute Summary collapse

Attributes inherited from AstNode

#label, #pos

Instance Method Summary collapse

Methods inherited from AstNode

#accept, #str

Constructor Details

#initialize(library = nil, package = nil, element = nil) ⇒ Use

Returns a new instance of Use.



43
44
45
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 43

def initialize library=nil,package=nil,element=nil
  @library,@package,@element=library,package,element
end

Instance Attribute Details

#elementObject

Returns the value of attribute element.



42
43
44
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 42

def element
  @element
end

#libraryObject

Returns the value of attribute library.



42
43
44
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 42

def library
  @library
end

#packageObject

Returns the value of attribute package.



42
43
44
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 42

def package
  @package
end