Sha256: b752f7208dfe268b27f662d71a16a7519ccad9842a196a050563563abeb9bb66

Contents?: true

Size: 242 Bytes

Versions: 8

Compression:

Stored size: 242 Bytes

Contents

module GoldenFleece
  class Format
    attr_reader :name

    def initialize(name, fn)
      @name = name
      @fn = fn
    end

    def validate(record, value)
      fn.call record, value
    end

    private

    attr_reader :fn
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
golden_fleece-1.0.1 lib/golden_fleece/format.rb
golden_fleece-1.0.0 lib/golden_fleece/format.rb
golden_fleece-0.1.5 lib/golden_fleece/format.rb
golden_fleece-0.1.4 lib/golden_fleece/format.rb
golden_fleece-0.1.3 lib/golden_fleece/format.rb
golden_fleece-0.1.2 lib/golden_fleece/format.rb
golden_fleece-0.1.1 lib/golden_fleece/format.rb
golden_fleece-0.1.0 lib/golden_fleece/format.rb