Module: Indieweb::PostTypes
- Extended by:
- Configuration
- Defined in:
- lib/indieweb/post_types.rb,
lib/indieweb/post_types/version.rb,
lib/indieweb/post_types/configuration.rb,
lib/indieweb/post_types/identifier/base.rb,
lib/indieweb/post_types/identifier/like.rb,
lib/indieweb/post_types/identifier/note.rb,
lib/indieweb/post_types/identifier/rsvp.rb,
lib/indieweb/post_types/identifier/photo.rb,
lib/indieweb/post_types/identifier/reply.rb,
lib/indieweb/post_types/identifier/video.rb,
lib/indieweb/post_types/identifier/repost.rb,
lib/indieweb/post_types/identifier/article.rb
Defined Under Namespace
Modules: Configuration, Identifier
Constant Summary collapse
- VERSION =
'0.3.2'.freeze
Instance Attribute Summary
Attributes included from Configuration
Class Method Summary collapse
Methods included from Configuration
configure, default_identifiers, extended, insert_identifier, reset_configuration!, set_default_configuration
Class Method Details
.type_from(data) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/indieweb/post_types.rb', line 9 def type_from(data) identifiers.each do |klass| type = klass.type_from(data) return type unless type.nil? end end |