Module: Applitools::MatchLevelSetter
- Included in:
- EyesBase, FluentInterface
- Defined in:
- lib/applitools/core/match_level_setter.rb
Instance Method Summary collapse
Instance Method Details
#match_level_with_exact(value, exact_options = {}) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/applitools/core/match_level_setter.rb', line 4 def match_level_with_exact(value, = {}) raise Applitools::EyesError unless Applitools::MATCH_LEVEL.keys.include? value if value != :exact && ( && !.empty?) raise Applitools::EyesError.new( 'Exact options are accepted only for EXACT match level' ) end [Applitools::MATCH_LEVEL[value], value == :exact ? () : nil] end |