Module: Transcoder

Defined in:
lib/transcoder.rb,
lib/transcoder/parser/xml/identifier.rb,
lib/transcoder/parser/feed/identifier.rb,
lib/transcoder/parser/json/identifier.rb,
lib/transcoder/parser/yaml/identifier.rb

Defined Under Namespace

Classes: Feed, Json, Parser, XML, Yaml

Constant Summary collapse

VERSION =
File.read(File.join(File.dirname(__FILE__), "..", "VERSION"))

Class Method Summary collapse

Class Method Details

.for(mime) ⇒ Object



12
13
14
# File 'lib/transcoder.rb', line 12

def self.for(mime)
  Parser.for(mime)
end

.register(mime, klass) ⇒ Object



16
17
18
# File 'lib/transcoder.rb', line 16

def self.register(mime, klass)
  klass.send(:identifier, mime)
end