class HamlI18nLint::Options
Attributes
config_path[RW]
@return [String] path to config file
files[W]
Public Instance Methods
config_content()
click to toggle source
@raise [LoadConfigError] if given config file path is not exists @return [String] the content of config_path
# File lib/haml_i18n_lint/options.rb, line 12 def config_content unless config_path && File.exist?(config_path) raise LoadConfigError, "Config not exist: #{config_path.inspect}" end File.read(config_path) end
files()
click to toggle source
@return [Array<String>] file patterns to list the files to be linted.
# File lib/haml_i18n_lint/options.rb, line 21 def files @files ||= ["**/*.haml"] end