Sha256: d75247520f1527f610a7a89cd4c9ad279cf62cc6ca3033441c0a899143191f08

Contents?: true

Size: 1.09 KB

Versions: 1

Compression:

Stored size: 1.09 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'

    # Handlers which augment a resource with data format specific
    # methods.
    HANDLERS = [
                [ "Formats::Csv",   /\.csv$/i    ],
                [ "Formats::Tsv",   /\.tsv$/i    ],
                [ "Formats::Excel", /\.xslx?$/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  ]
               ]
  end
end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
imw-0.2.7 lib/imw/formats.rb