lib/puppet-debugger/code/code_file.rb in puppet-debugger-0.6.1 vs lib/puppet-debugger/code/code_file.rb in puppet-debugger-0.7.0

- old
+ new

@@ -1,30 +1,31 @@ # frozen_string_literal: true + class CodeFile class SourceNotFound < RuntimeError end DEFAULT_EXT = '.pp' # List of all supported languages. # @return [Hash] EXTENSIONS = { - %w(.py) => :python, - %w(.js) => :javascript, - %w(.pp) => :puppet, - %w(.css) => :css, - %w(.xml) => :xml, - %w(.php) => :php, - %w(.html) => :html, - %w(.diff) => :diff, - %w(.java) => :java, - %w(.json) => :json, - %w(.c .h) => :c, - %w(.rhtml) => :rhtml, - %w(.yaml .yml) => :yaml, - %w(.cpp .hpp .cc .h cxx) => :cpp, - %w(.rb .ru .irbrc .gemspec .pryrc) => :ruby + %w[.py] => :python, + %w[.js] => :javascript, + %w[.pp] => :puppet, + %w[.css] => :css, + %w[.xml] => :xml, + %w[.php] => :php, + %w[.html] => :html, + %w[.diff] => :diff, + %w[.java] => :java, + %w[.json] => :json, + %w[.c .h] => :c, + %w[.rhtml] => :rhtml, + %w[.yaml .yml] => :yaml, + %w[.cpp .hpp .cc .h cxx] => :cpp, + %w[.rb .ru .irbrc .gemspec .pryrc] => :ruby }.freeze # @return [Symbol] The type of code stored in this wrapper. attr_reader :code_type