Sha256: f264064801a9e7ddf3e36cd9da4ffe000daf9b31d870bccd4ec709b158e625f8

Contents?: true

Size: 374 Bytes

Versions: 10

Compression:

Stored size: 374 Bytes

Contents

module Para
  module ModelFieldParsers
    class Base
      def self.register(key, parser)
        ModelFieldParsers.registered_parsers[key] = parser
      end

      attr_reader :model, :fields_hash

      def initialize(model, fields_hash)
        @model = model
        @fields_hash = fields_hash
      end

      def applicable?
        true
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
para-0.6.9 lib/para/model_field_parsers/base.rb
para-0.6.8 lib/para/model_field_parsers/base.rb
para-0.6.7 lib/para/model_field_parsers/base.rb
para-0.6.3 lib/para/model_field_parsers/base.rb
para-0.6.2 lib/para/model_field_parsers/base.rb
para-0.5.4 lib/para/model_field_parsers/base.rb
para-0.5.3 lib/para/model_field_parsers/base.rb
para-0.5.1 lib/para/model_field_parsers/base.rb
para-0.5.0 lib/para/model_field_parsers/base.rb
para-0.4.0 lib/para/model_field_parsers/base.rb