Sha256: 942151cabbd9a52f088f8d39b55ff210bfa25e04b4c99dd63d547ea4e4540371
Contents?: true
Size: 496 Bytes
Versions: 66
Compression:
Stored size: 496 Bytes
Contents
module God module Conditions class Lambda < PollCondition attr_accessor :lambda def valid? valid = true valid &= complain("Attribute 'lambda' must be specified", self) if self.lambda.nil? valid end def test if self.lambda.call() self.info = "lambda condition was satisfied" true else self.info = "lambda condition was not satisfied" false end end end end end
Version data entries
66 entries across 66 versions & 21 rubygems