Class: ClosureCompilerConfig
- Inherits:
-
Object
- Object
- ClosureCompilerConfig
- Defined in:
- lib/tasks/closure_compiler/closure_compiler_config.rb
Instance Method Summary collapse
- #conf ⇒ Object
-
#initialize(dir, yaml, uri) ⇒ ClosureCompilerConfig
constructor
A new instance of ClosureCompilerConfig.
- #reload ⇒ Object
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
#conf ⇒ Object
13 14 15 |
# File 'lib/tasks/closure_compiler/closure_compiler_config.rb', line 13 def conf return @conf end |
#reload ⇒ Object
9 10 11 |
# File 'lib/tasks/closure_compiler/closure_compiler_config.rb', line 9 def reload @conf = @yaml.load_file(@config_file) end |