Class: BuildTool::Cfg::BazarDeclarationNodeVisitor

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) ⇒ 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