method
new
v8.0.0 -
Show latest stable
- Class:
Rails::TestUnit::Filter
new(runnable, file, line_or_range)public
No documentation available.
# File railties/lib/rails/test_unit/runner.rb, line 184
def initialize(runnable, file, line_or_range)
@runnable, @file = runnable, File.expand_path(file)
if line_or_range
first, last = line_or_range.split("-").map(&:to_i)
last ||= first
@line_range = Range.new(first, last)
end
end