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
god-0.9.0 lib/god/conditions/always.rb
olgen-god-0.9.2 lib/god/conditions/always.rb
olgen-god-0.9.1 lib/god/conditions/always.rb
olgen-god-0.9.0 lib/god/conditions/always.rb
god-0.8.0 lib/god/conditions/always.rb
olgen-god-0.8.2 lib/god/conditions/always.rb
olgen-god-0.8.1 lib/god/conditions/always.rb
olgen-god-0.8.0 lib/god/conditions/always.rb
god-0.7.22 lib/god/conditions/always.rb
god-0.7.21 lib/god/conditions/always.rb
god-0.7.20 lib/god/conditions/always.rb
god-0.7.19 lib/god/conditions/always.rb
god-0.7.18 lib/god/conditions/always.rb
god-0.7.17 lib/god/conditions/always.rb
god-0.7.16 lib/god/conditions/always.rb
god-0.7.15 lib/god/conditions/always.rb
god-0.7.14 lib/god/conditions/always.rb
god-0.7.11 lib/god/conditions/always.rb
god-0.7.0 lib/god/conditions/always.rb
god-0.5.0 lib/god/conditions/always.rb