Class: ClosureCompilerConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/tasks/closure_compiler/closure_compiler_config.rb

Instance Method Summary collapse

Constructor Details

#initialize(dir, yaml, uri) ⇒ ClosureCompilerConfig

Returns a new instance of ClosureCompilerConfig.



3
4
5
6
7
# File 'lib/tasks/closure_compiler/closure_compiler_config.rb', line 3

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

Instance Method Details

#confObject



13
14
15
# File 'lib/tasks/closure_compiler/closure_compiler_config.rb', line 13

def conf
  return @conf
end

#reloadObject



9
10
11
# File 'lib/tasks/closure_compiler/closure_compiler_config.rb', line 9

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