Class: BuildTool::Cfg::MercurialDeclarationNodeVisitor
- Inherits:
-
ListVisitor
- Object
- MJ::VisitorBase
- ListVisitor
- BuildTool::Cfg::MercurialDeclarationNodeVisitor
- Defined in:
- lib/build-tool/cfg/visitor.rb
Instance Attribute Summary
Attributes inherited from MJ::VisitorBase
Instance Method Summary collapse
-
#initialize(configuration, vcs) ⇒ MercurialDeclarationNodeVisitor
constructor
A new instance of MercurialDeclarationNodeVisitor.
- #visit_MercurialDeclarationNode(node) ⇒ Object
- #visit_MercurialTrackNode(node) ⇒ Object
- #visit_MercurialUrlNode(node) ⇒ Object
Methods inherited from ListVisitor
Methods inherited from MJ::VisitorBase
Constructor Details
#initialize(configuration, vcs) ⇒ MercurialDeclarationNodeVisitor
Returns a new instance of MercurialDeclarationNodeVisitor.
514 515 516 517 |
# File 'lib/build-tool/cfg/visitor.rb', line 514 def initialize( configuration, vcs ) super( configuration ) @vcs = vcs end |
Instance Method Details
#visit_MercurialDeclarationNode(node) ⇒ Object
519 520 521 522 |
# File 'lib/build-tool/cfg/visitor.rb', line 519 def visit_MercurialDeclarationNode( node ) visit_nodes( node.values ) @vcs end |
#visit_MercurialTrackNode(node) ⇒ Object
524 525 526 |
# File 'lib/build-tool/cfg/visitor.rb', line 524 def visit_MercurialTrackNode( node ) @vcs.track = node.values end |
#visit_MercurialUrlNode(node) ⇒ Object
528 529 530 |
# File 'lib/build-tool/cfg/visitor.rb', line 528 def visit_MercurialUrlNode( node ) @vcs.url = node.values[0] end |