Sha256: 67444da7c4880826ff6cb5290f3faffc5a474fa17f0867b33812da9526e10194

Contents?: true

Size: 269 Bytes

Versions: 6

Compression:

Stored size: 269 Bytes

Contents

module Compel
  module Builder

    class Boolean < Schema

      def initialize
        super(Coercion::Boolean)
      end

      def is(value)
        Coercion.coerce!(value, Coercion::Boolean)
        options[:is] = value

        self
      end

    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
compel-0.4.0 lib/compel/builder/boolean.rb
compel-0.3.7 lib/compel/builder/boolean.rb
compel-0.3.6 lib/compel/builder/boolean.rb
compel-0.3.4 lib/compel/builder/boolean.rb
compel-0.3.2 lib/compel/builder/boolean.rb
compel-0.3.1 lib/compel/builder/boolean.rb