Class: Motion::Project::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/motion-screenshots.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#is_taking_screenshotsObject

Returns the value of attribute is_taking_screenshots.



18
19
20
# File 'lib/motion-screenshots.rb', line 18

def is_taking_screenshots
  @is_taking_screenshots
end

#screenshot_callbackObject

Returns the value of attribute screenshot_callback.



18
19
20
# File 'lib/motion-screenshots.rb', line 18

def screenshot_callback
  @screenshot_callback
end

Instance Method Details

#after_screenshots(&block) ⇒ Object Also known as: manage_screenshots



28
29
30
# File 'lib/motion-screenshots.rb', line 28

def after_screenshots(&block)
  @screenshot_callback = block
end

#before_screenshots(&block) ⇒ Object



22
23
24
25
26
# File 'lib/motion-screenshots.rb', line 22

def before_screenshots(&block)
  if is_taking_screenshots
    block.call
  end
end