Sha256: 82b8e03611a15c129772ec92aff9b428ffcde8a8103b2ef52b05bf8eecc39400

Contents?: true

Size: 255 Bytes

Versions: 3

Compression:

Stored size: 255 Bytes

Contents

module Yema
  module Virtus
    class Builder
      class Inclusion < self

        def build
          within = options.fetch(:within, false)
          Rule::Inclusion.new(attribute.name, within: within) if within
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
yema-0.0.3 lib/yema/virtus/builder/inclusion.rb
yema-0.0.2 lib/yema/virtus/builder/inclusion.rb
yema-0.0.1 lib/yema/virtus/builder/inclusion.rb