Class: Watirmark::Screenshot::CurrentScreenShots

Inherits:
Object
  • Object
show all
Defined in:
lib/watirmark/screenshot.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCurrentScreenShots

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

#screenshotsObject

Returns the value of attribute screenshots.



43
44
45
# File 'lib/watirmark/screenshot.rb', line 43

def screenshots
  @screenshots
end