Module: IMW::Resources::Formats

Included in:
IMW::Resources
Defined in:
lib/imw/resources/formats.rb,
lib/imw/resources/formats/json.rb,
lib/imw/resources/formats/sgml.rb,
lib/imw/resources/formats/yaml.rb,
lib/imw/resources/formats/delimited.rb

Defined Under Namespace

Modules: Csv, Delimited, Html, Json, Rdf, Sgml, Tsv, Xhtml, Xml, Xsl, Yaml

Constant Summary collapse

FORMAT_HANDLERS =

Handlers which augment a resource with data format specific methods.

[
 [ "Formats::Csv",   /\.csv$/    ],
 [ "Formats::Tsv",   /\.tsv$/    ],
 [ "Formats::Excel", /\.xslx?$/  ],
 [ "Formats::Json",  /\.json$/   ],
 [ "Formats::Xml",   /\.xml$/    ],
 [ "Formats::Xsl",   /\.xsl$/    ],                         
 [ "Formats::Html",  /\.html?$/  ],
 [ "Formats::Xhtml", /\.xhtml?$/ ],
 [ "Formats::Rdf",   /\.rdf?$/   ],
 [ "Formats::Yaml",  /\.ya?ml$/  ]
]