module Gnawrnip
Constants
- VERSION
Attributes
make_animation[RW]
- Boolean
-
Whether to make animation GIF
max_frame_size[RW]
- Integer
-
Maximum size that use to resize of image. If given, it resize the image to fit to this value. Ignored if this value is greater than original width and height.
Example:
original: 640x480 this value: 300 result : 300x225 original: 480x640 this value: 400 result : 300x400
Public Class Methods
animation?()
click to toggle source
# File lib/gnawrnip.rb, line 38 def animation? make_animation end
configure() { |self| ... }
click to toggle source
# File lib/gnawrnip.rb, line 29 def configure yield self end
frame_interval_ms=(_)
click to toggle source
# File lib/gnawrnip.rb, line 46 def frame_interval_ms=(_) warn 'DEPRECATED: `frame_interval_ms` option is deprecated (not used).' end
photographer()
click to toggle source
# File lib/gnawrnip.rb, line 42 def photographer @photographer ||= Photographer.new end
ready!()
click to toggle source
# File lib/gnawrnip.rb, line 33 def ready! require 'gnawrnip/ext/capybara/session' if animation? require 'gnawrnip/step_screenshot' end