Sha256: 29ada3bd19971b96f7324d679816161bf933c055aaec8dc081f277a4f7f30e43

Contents?: true

Size: 1.18 KB

Versions: 11

Compression:

Stored size: 1.18 KB

Contents

module IMW
  module Formats
    autoload :Csv,   'imw/formats/delimited'
    autoload :Tsv,   'imw/formats/delimited'
    autoload :Excel, 'imw/formats/excel'
    autoload :Json,  'imw/formats/json'
    autoload :Xml,   'imw/formats/sgml'
    autoload :Xsl,   'imw/formats/sgml'
    autoload :Html,  'imw/formats/sgml'
    autoload :Xhtml, 'imw/formats/sgml'
    autoload :Rdf,   'imw/formats/sgml'      
    autoload :Yaml,  'imw/formats/yaml'
    autoload :Pdf,   'imw/formats/pdf'

    # Handlers which augment a resource with data format specific
    # methods.
    HANDLERS = [
                [ "Formats::Csv",   /\.csv$/i    ],
                [ "Formats::Tsv",   /\.tsv$/i    ],
                [ "Formats::Excel", /\.xlsx?$/i  ],
                [ "Formats::Json",  /\.json$/i   ],
                [ "Formats::Xml",   /\.xml$/i    ],
                [ "Formats::Xsl",   /\.xsl$/i    ],                         
                [ "Formats::Html",  /\.html?$/i  ],
                [ "Formats::Xhtml", /\.xhtml?$/i ],
                [ "Formats::Rdf",   /\.rdf?$/i   ],
                [ "Formats::Yaml",  /\.ya?ml$/i  ],
                [ "Formats::Pdf",   /\.pdf$/i    ]
               ]
  end
end


Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
imw-0.2.18 lib/imw/formats.rb
imw-0.2.17 lib/imw/formats.rb
imw-0.2.16 lib/imw/formats.rb
imw-0.2.15 lib/imw/formats.rb
imw-0.2.14 lib/imw/formats.rb
imw-0.2.13 lib/imw/formats.rb
imw-0.2.12 lib/imw/formats.rb
imw-0.2.11 lib/imw/formats.rb
imw-0.2.10 lib/imw/formats.rb
imw-0.2.9 lib/imw/formats.rb
imw-0.2.8 lib/imw/formats.rb