implemented state based lifecycle
[god.git] / lib / god / conditions / always.rb
blob7340a0f86107db0708214c831fd6b722959c3a4c
1 module God
2   module Conditions
4     class Always < PollCondition
5       attr_accessor :what
6       
7       def valid?
8         valid = true
9         valid &= complain("You must specify the 'what' attribute for :always") if self.what.nil?
10         valid
11       end
12       
13       def test
14         @what
15       end
16     end
17   
18   end
19 end