Add ability to pass extra parameters to during tests. Limit distance table search so that it doesn't return any big components if they're beyond max_distance.
17 lines
226 B
Ruby
17 lines
226 B
Ruby
def profile
|
|
@profile ||= reset_profile
|
|
end
|
|
|
|
def reset_profile
|
|
@profile = nil
|
|
set_profile DEFAULT_SPEEDPROFILE
|
|
end
|
|
|
|
def set_profile profile
|
|
@profile = profile
|
|
end
|
|
|
|
def set_extract_args args
|
|
@extract_args = args
|
|
end
|