Class: Motion::Project::Config
- Inherits:
-
Object
- Object
- Motion::Project::Config
- Defined in:
- lib/motion-screenshots.rb
Instance Attribute Summary collapse
-
#is_taking_screenshots ⇒ Object
Returns the value of attribute is_taking_screenshots.
-
#screenshot_callback ⇒ Object
Returns the value of attribute screenshot_callback.
Instance Method Summary collapse
- #after_screenshots(&block) ⇒ Object (also: #manage_screenshots)
- #before_screenshots(&block) ⇒ Object
Instance Attribute Details
#is_taking_screenshots ⇒ Object
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_callback ⇒ Object
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 |