Module: Applitools::FluentInterface
- Includes:
- MatchLevelSetter
- Included in:
- Calabash::Target
- Defined in:
- lib/applitools/core/fluent_interface.rb
Class Method Summary collapse
Instance Method Summary collapse
- #ignore_caret(value = false) ⇒ Object
- #ignore_mismatch(value) ⇒ Object
-
#match_level(value, exact_options = {}) ⇒ Target
Sets match_level for current test.
- #timeout(value) ⇒ Object
- #trim(value = true) ⇒ Object
Methods included from MatchLevelSetter
Class Method Details
.included(base) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/applitools/core/fluent_interface.rb', line 5 def self.included(base) base.define_singleton_method(:===) do |other| return name == other if other.is_a? String super(other) end end |
Instance Method Details
#ignore_caret(value = false) ⇒ Object
12 13 14 15 |
# File 'lib/applitools/core/fluent_interface.rb', line 12 def ignore_caret(value = false) [:ignore_caret] = value ? true : false self end |
#ignore_mismatch(value) ⇒ Object
27 28 29 30 |
# File 'lib/applitools/core/fluent_interface.rb', line 27 def ignore_mismatch(value) [:ignore_mismatch] = value ? true : false self end |
#match_level(value, exact_options = {}) ⇒ Target
Sets match_level for current test
41 42 43 44 |
# File 'lib/applitools/core/fluent_interface.rb', line 41 def match_level(value, = {}) [:match_level], [:exact] = match_level_with_exact(value, ) self end |
#timeout(value) ⇒ Object
17 18 19 20 |
# File 'lib/applitools/core/fluent_interface.rb', line 17 def timeout(value) [:timeout] = value.to_i self end |
#trim(value = true) ⇒ Object
22 23 24 25 |
# File 'lib/applitools/core/fluent_interface.rb', line 22 def trim(value = true) [:trim] = value ? true : false self end |