Class: BuildTool::Cfg::MercurialDeclarationNodeVisitor

Inherits:
ListVisitor show all
Defined in:
lib/build-tool/cfg/visitor.rb

Instance Attribute Summary

Attributes inherited from MJ::VisitorBase

#configuration

Instance Method Summary collapse

Methods inherited from ListVisitor

#visit, #visit_nodes

Methods inherited from MJ::VisitorBase

#visit_Object

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