Sha256: 1e7e0cb6145856abee8432bd7dc69b9c90c0fe1db7fff8420e0b81bd196f7612

Contents?: true

Size: 303 Bytes

Versions: 1

Compression:

Stored size: 303 Bytes

Contents

module Compel
  module Builder

    module Common

      def is(value)
        options[:is] = value
        self
      end

      def required
        options[:required] = true
        self
      end

      def default(value)
        options[:default] = value
        self
      end

    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
compel-0.2.0 lib/compel/builder/common.rb