Class: BuildTool::Cfg::BazarDeclarationNodeVisitor
- Inherits:
-
ListVisitor
- Object
- MJ::VisitorBase
- ListVisitor
- BuildTool::Cfg::BazarDeclarationNodeVisitor
- Defined in:
- lib/build-tool/cfg/visitor.rb
Instance Attribute Summary
Attributes inherited from MJ::VisitorBase
Instance Method Summary collapse
-
#initialize(configuration, vcs) ⇒ BazarDeclarationNodeVisitor
constructor
A new instance of BazarDeclarationNodeVisitor.
- #visit_BazarDeclarationNode(node) ⇒ Object
- #visit_BazarUrlNode(node) ⇒ Object
Methods inherited from ListVisitor
Methods inherited from MJ::VisitorBase
Constructor Details
#initialize(configuration, vcs) ⇒ BazarDeclarationNodeVisitor
Returns a new instance of BazarDeclarationNodeVisitor.
494 495 496 497 |
# File 'lib/build-tool/cfg/visitor.rb', line 494 def initialize( configuration, vcs ) super( configuration ) @vcs = vcs end |
Instance Method Details
#visit_BazarDeclarationNode(node) ⇒ Object
499 500 501 502 |
# File 'lib/build-tool/cfg/visitor.rb', line 499 def visit_BazarDeclarationNode( node ) visit_nodes( node.values ) @vcs end |
#visit_BazarUrlNode(node) ⇒ Object
504 505 506 |
# File 'lib/build-tool/cfg/visitor.rb', line 504 def visit_BazarUrlNode( node ) @vcs.url = node.values[0] end |