lib/parade/parsers/presentation_file_parser.rb in parade-0.10.1 vs lib/parade/parsers/presentation_file_parser.rb in parade-0.10.2
- old
+ new
@@ -1,25 +1,19 @@
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
+ DslFileParser.parse(filepath,options)
end
end
end
\ No newline at end of file