Sha256: d9293283c75def4e01d2c614a00140130ddbb76e6c247b567e133d5f575a6e8d

Contents?: true

Size: 264 Bytes

Versions: 1

Compression:

Stored size: 264 Bytes

Contents

module FormObject
  class Base
    MappingInformation = Struct.new(:form, :model, :name, :options) do

      def match?( critery = {} )
        critery.each do |k, v|
          return false unless self[k] == v
        end
        true
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
form_object-0.1.1 lib/form_object/base/mapping_information.rb