Class: Capybara::Storyboard::Policies::EnvPolicy
- Inherits:
-
Object
- Object
- Capybara::Storyboard::Policies::EnvPolicy
- Defined in:
- lib/capybara/storyboard/policies/env_policy.rb
Overview
Arms the whole mechanism from ENV. Backward-compatible with the gist: true iff SCREENSHOTS is set to a non-blank value. Ignores the context entirely — the argument exists only to honor the call(context) contract.
Instance Method Summary collapse
Instance Method Details
#call(_context) ⇒ Object
10 11 12 |
# File 'lib/capybara/storyboard/policies/env_policy.rb', line 10 def call(_context) ENV['SCREENSHOTS'].present? end |