lib/gatling/image_wrangler.rb in gatling-1.0.7 vs lib/gatling/image_wrangler.rb in gatling-1.0.8
- old
+ new
@@ -1,10 +1,9 @@
module Gatling
- class ImageWrangler
+ module ImageWrangler
def self.get_element_position element
-
element = element.native
position = Hash.new{}
position[:x] = element.location.x
position[:y] = element.location.y
position[:width] = element.size.width
@@ -15,11 +14,10 @@
def self.crop_element image, element_to_crop
position = get_element_position(element_to_crop)
@cropped_element = image.crop(position[:x], position[:y], position[:width], position[:height])
end
- def self.exclude image, element_to_exclude
- end
+
end
end