Sha256: 12f01bbf85c7abbbce22d5f1a3e82ffd4880f148a7e34200a76ff46335a2f98c

Contents?: true

Size: 249 Bytes

Versions: 3

Compression:

Stored size: 249 Bytes

Contents

module Yema
  module Virtus
    class Builder
      class Format < self

        def build
          format = options.fetch(:format, false)
          Rule::Format.new(attribute.name, format: format) if format
        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/format.rb
yema-0.0.2 lib/yema/virtus/builder/format.rb
yema-0.0.1 lib/yema/virtus/builder/format.rb