F
forest
what is the scope of @run field in the code below. Is it module static
? If not, how module static methods can access it ?
module Test
module Unit
def self.run=(flag)
@run = flag
end
def self.run?
@run ||= false
end
end
end
at_exit do
unless $! || Test::Unit.run?
exit Test::Unit::AutoRunner.run($0 != "-e" && $0)
end
end
? If not, how module static methods can access it ?
module Test
module Unit
def self.run=(flag)
@run = flag
end
def self.run?
@run ||= false
end
end
end
at_exit do
unless $! || Test::Unit.run?
exit Test::Unit::AutoRunner.run($0 != "-e" && $0)
end
end