Sha256: dfd4bb89ac1c0d106d595ef7537cb88b04724ccc7f8999c91e56d4846884d9ed
Contents?: true
Size: 332 Bytes
Versions: 4
Compression:
Stored size: 332 Bytes
Contents
module God module Conditions class Lambda < PollCondition attr_accessor :lambda def valid? valid = true valid &= complain("You must specify the 'lambda' attribute for :lambda") if self.lambda.nil? valid end def test self.lambda.call() end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
god-0.3.0 | lib/god/conditions/lambda.rb |
god-0.4.0 | lib/god/conditions/lambda.rb |
god-0.4.1 | lib/god/conditions/lambda.rb |
god-0.4.3 | lib/god/conditions/lambda.rb |