Class: JsFlasherInitable
- Inherits:
-
Object
- Object
- JsFlasherInitable
- Includes:
- JsFlasher::Configuration, JsFlasher::GetTemplates
- Defined in:
- lib/js-flasher.rb
Constant Summary
Constants included from JsFlasher::Configuration
JsFlasher::Configuration::DEFAULT_EXTENSIONS_IN_KEYS, JsFlasher::Configuration::DEFAULT_JS_NAMESPACE, JsFlasher::Configuration::DEFAULT_SUPPORTED_EXENSIONS, JsFlasher::Configuration::DEFAULT_TARGET_DIRECTORY, JsFlasher::Configuration::DEFAULT_TEMPLATE_SOURCES, JsFlasher::Configuration::VALID_OPTIONS
Instance Method Summary collapse
-
#initialize(config = {}) ⇒ JsFlasherInitable
constructor
A new instance of JsFlasherInitable.
Methods included from JsFlasher::GetTemplates
#get_templates, #get_templates_ob
Methods included from JsFlasher::Configuration
Constructor Details
#initialize(config = {}) ⇒ JsFlasherInitable
Returns a new instance of JsFlasherInitable.
16 17 18 19 20 21 22 |
# File 'lib/js-flasher.rb', line 16 def initialize(config = {}) reset() config.each do |opt, val| self.send("#{opt}=",val) end end |