Class: Watirmark::Screenshot::CurrentScreenShots
- Defined in:
- lib/watirmark/screenshot.rb
Instance Attribute Summary collapse
-
#screenshots ⇒ Object
Returns the value of attribute screenshots.
Instance Method Summary collapse
-
#initialize ⇒ CurrentScreenShots
constructor
A new instance of CurrentScreenShots.
Constructor Details
#initialize ⇒ CurrentScreenShots
Returns a new instance of CurrentScreenShots.
45 46 47 48 49 50 51 52 53 |
# File 'lib/watirmark/screenshot.rb', line 45 def initialize if Watirmark::Configuration.instance.snapshotwidth.kind_of?(Fixnum) @screenshots = Current.new else widths = Watirmark::Configuration.instance.snapshotwidth.split(",").map {|s| s.to_i} @screenshots = [] widths.each {|width| @screenshots << Current.new(width) } end end |
Instance Attribute Details
#screenshots ⇒ Object
Returns the value of attribute screenshots.
43 44 45 |
# File 'lib/watirmark/screenshot.rb', line 43 def screenshots @screenshots end |