module ANTLR3::Test::DependantFile
Constants
- GLOBAL_DEPENDENCIES
Attributes
force[RW]
force?[RW]
path[RW]
Public Instance Methods
dependencies()
click to toggle source
# File lib/antlr3/test/grammar.rb, line 23 def dependencies @dependencies ||= GLOBAL_DEPENDENCIES.clone end
depends_on( path )
click to toggle source
# File lib/antlr3/test/grammar.rb, line 27 def depends_on( path ) path = File.expand_path path.to_s dependencies << path if test( ?f, path ) return path end
stale?()
click to toggle source
# File lib/antlr3/test/grammar.rb, line 33 def stale? force and return( true ) target_files.any? do |target| not test( ?f, target ) or dependencies.any? { |dep| test( ?>, dep, target ) } end end