Sha256: 8e975a8b8b8347050cc3e6a5b6ce535ec0b180f9761cfc9fbf27a090eb91f08b

Contents?: true

Size: 342 Bytes

Versions: 5

Compression:

Stored size: 342 Bytes

Contents

require 'indieweb/post_types/version'
require 'indieweb/post_types/configuration'

module Indieweb
  module PostTypes
    extend Configuration

    class << self
      def type_from(data)
        identifiers.each do |klass|
          type = klass.type_from(data)
          return type unless type.nil?
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
indieweb-post_types-0.3.2 lib/indieweb/post_types.rb
indieweb-post_types-0.3.1 lib/indieweb/post_types.rb
indieweb-post_types-0.3.0 lib/indieweb/post_types.rb
indieweb-post_types-0.2.0 lib/indieweb/post_types.rb
indieweb-post_types-0.1.0 lib/indieweb/post_types.rb