Sha256: 194dde8f60b7ce4271d9eb59ec830ba551f1035c83b54f6c70de3223ba9f7c7f

Contents?: true

Size: 199 Bytes

Versions: 27

Compression:

Stored size: 199 Bytes

Contents

module Stove
  module Mixin::Validatable
    def validate(id, &block)
      validations[id] = Validator.new(self, id, &block)
    end

    def validations
      @validations ||= {}
    end
  end
end

Version data entries

27 entries across 27 versions & 3 rubygems

Version Path
chef-stove-7.1.6 lib/stove/mixins/validatable.rb
stove-7.1.6 lib/stove/mixins/validatable.rb
chef-stove-7.1.5 lib/stove/mixins/validatable.rb
stove-7.1.5 lib/stove/mixins/validatable.rb
chef-stove-7.1.1 lib/stove/mixins/validatable.rb
stove-7.1.0 lib/stove/mixins/validatable.rb
stove-7.0.1 lib/stove/mixins/validatable.rb
stove-7.0.0 lib/stove/mixins/validatable.rb
stove-6.1.1 lib/stove/mixins/validatable.rb
stove-6.1.0 lib/stove/mixins/validatable.rb
stove-6.0.0 lib/stove/mixins/validatable.rb
stove-5.2.0 lib/stove/mixins/validatable.rb
stove-5.1.0 lib/stove/mixins/validatable.rb
stove-5.0.0 lib/stove/mixins/validatable.rb
stove-4.1.1 lib/stove/mixins/validatable.rb
stove-4.1.0 lib/stove/mixins/validatable.rb
stove-4.0.0 lib/stove/mixins/validatable.rb
stove-3.2.8 lib/stove/mixins/validatable.rb
wood-stove-3.2.9000 lib/stove/mixins/validatable.rb
stove-3.2.7 lib/stove/mixins/validatable.rb