Module: Applitools::HashExtension
- Included in:
- RectangleSize
- Defined in:
- lib/applitools/core/hash_extension.rb
Instance Method Summary collapse
Instance Method Details
#struct_define_to_h_method ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/applitools/core/hash_extension.rb', line 5 def struct_define_to_h_method define_singleton_method :to_h do result = {} each_pair { |k, v| result[k] = v } result end end |