Sha256: 442325573b3c101671c98fe5bc24c0e9e3d0be6452aa32b5afbeec0e050dd315

Contents?: true

Size: 381 Bytes

Versions: 69

Compression:

Stored size: 381 Bytes

Contents

module God
  module Conditions

    class Always < PollCondition
      attr_accessor :what
      
      def initialize
        self.info = "always"
      end
      
      def valid?
        valid = true
        valid &= complain("Attribute 'what' must be specified", self) if self.what.nil?
        valid
      end
      
      def test
        @what
      end
    end
  
  end
end

Version data entries

69 entries across 69 versions & 21 rubygems

Version Path
dguettler-god-0.7.13.2 lib/god/conditions/always.rb
dguettler-god-0.7.13.3 lib/god/conditions/always.rb
dosire-god-0.7.10 lib/god/conditions/always.rb
dosire-god-0.7.12 lib/god/conditions/always.rb
dosire-god-0.7.9 lib/god/conditions/always.rb
dunedain289-god-0.7.12.1 lib/god/conditions/always.rb
dustin-god-0.7.7.1 lib/god/conditions/always.rb
eric-god-0.7.10 lib/god/conditions/always.rb
eric-god-0.7.11 lib/god/conditions/always.rb
eric-god-0.7.12 lib/god/conditions/always.rb
eric-god-0.7.14 lib/god/conditions/always.rb
eric-god-0.7.7 lib/god/conditions/always.rb
fotonauts-god-0.7.10 lib/god/conditions/always.rb
fotonauts-god-0.7.12 lib/god/conditions/always.rb
gohanlonllc-god-0.7.9 lib/god/conditions/always.rb
gordoncww-god-0.7.11.1 lib/god/conditions/always.rb
jreynolds-god-0.7.13 lib/god/conditions/always.rb
jwilkins-god-0.7.9 lib/god/conditions/always.rb
mathieuravaux-god-0.7.11 lib/god/conditions/always.rb
mojombo-god-0.7.10 lib/god/conditions/always.rb