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.
16 17 18 |
# File 'lib/motion-screenshots.rb', line 16 def is_taking_screenshots @is_taking_screenshots end |
#screenshot_callback ⇒ Object
Returns the value of attribute screenshot_callback.
16 17 18 |
# File 'lib/motion-screenshots.rb', line 16 def screenshot_callback @screenshot_callback end |
Instance Method Details
#after_screenshots(&block) ⇒ Object Also known as: manage_screenshots
26 27 28 |
# File 'lib/motion-screenshots.rb', line 26 def after_screenshots(&block) @screenshot_callback = block end |
#before_screenshots(&block) ⇒ Object
20 21 22 23 24 |
# File 'lib/motion-screenshots.rb', line 20 def before_screenshots(&block) if is_taking_screenshots block.call end end |