Class: GoogleLintConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/tasks/google_lint/google_lint_config.rb

Instance Method Summary collapse

Constructor Details

#initialize(dir, yaml, uri) ⇒ GoogleLintConfig

Returns a new instance of GoogleLintConfig.



3
4
5
6
7
# File 'lib/tasks/google_lint/google_lint_config.rb', line 3

def initialize(dir, yaml, uri)
  @config_file = dir + '/gjslint.yml'
  @yaml = yaml
  @uri = uri
end

Instance Method Details

#confObject



13
14
15
# File 'lib/tasks/google_lint/google_lint_config.rb', line 13

def conf
  return @conf
end

#reloadObject



9
10
11
# File 'lib/tasks/google_lint/google_lint_config.rb', line 9

def reload
  @conf = @yaml.load_file(@config_file)
end