Sha256: d62b203aae62beb51faa901ead45230211a49aff1f506244de2e3e2acf2ef52e
Contents?: true
Size: 660 Bytes
Versions: 8
Compression:
Stored size: 660 Bytes
Contents
require_relative 'dsl_file_parser' require_relative 'json_file_parser' module Parade module Parsers # # The Presentation File Parser allows for the JSON formatted file or the # DSL formatted files. The determination of which to use is solely based # on the file extension. # class PresentationFileParser def self.parse(filepath,options = {}) options = options.merge(:current_path => File.dirname(filepath)) if File.extname(filepath) == ".json" JsonFileParser.parse(filepath,options) else DslFileParser.parse(filepath,options) end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems