Module: Applitools::Helpers
- Included in:
- EyesBase, EyesScreenshot
- Defined in:
- lib/applitools/core/helpers.rb
Instance Method Summary collapse
Instance Method Details
#abstract_attr_accessor(*names) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/applitools/core/helpers.rb', line 3 def abstract_attr_accessor(*names) names.each do |method_name| instance_variable_set "@#{method_name}", nil abstract_method method_name, true abstract_method "#{method_name}=", true end end |
#abstract_method(method_name, is_private = true) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/applitools/core/helpers.rb', line 11 def abstract_method(method_name, is_private = true) define_method method_name do |*_args| raise Applitools::AbstractMethodCalled.new method_name, self end private method_name if is_private end |