blob: 551fa1acd87abaf504834298e766f20f750cd99f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# frozen_string_literal: true
module Spec
module Options
def opt_add(option, options)
[option.strip, options].compact.reject(&:empty?).join(" ")
end
def opt_remove(option, options)
return unless options
options.split(" ").reject {|opt| opt.strip == option.strip }.join(" ")
end
end
end
|