God::PollCondition
Always trigger or never trigger.
Examples
# Always trigger. on.condition(:always) do |c| c.what = true end # Never trigger. on.condition(:always) do |c| c.what = false end
The Boolean determining whether this condition will always trigger (true) or never trigger (false).
# File lib/god/conditions/always.rb, line 21 def initialize self.info = "always" end
# File lib/god/conditions/always.rb, line 31 def test @what end
# File lib/god/conditions/always.rb, line 25 def valid? valid = true valid &= complain("Attribute 'what' must be specified", self) if self.what.nil? valid end
[Validate]
Generated with the Darkfish Rdoc Generator 2.