Class: Shamu::Features::Conditions::Env
- Defined in:
- lib/shamu/features/conditions/env.rb
Overview
Match against an environment variable.
Instance Method Summary collapse
-
#match?(context) ⇒ Boolean
True if the condition matches the given environment.
Methods inherited from Condition
Constructor Details
This class inherits a constructor from Shamu::Features::Conditions::Condition
Instance Method Details
#match?(context) ⇒ Boolean
Returns true if the condition matches the given environment.
9 10 11 |
# File 'lib/shamu/features/conditions/env.rb', line 9 def match?( context ) variables.any? { |name, matcher| matcher.call( context.env( name ) ) } end |