Method: ModJS::Blueprint#initialize
- Defined in:
- lib/modjs-architecture.rb
#initialize(config, root = nil) ⇒ Blueprint
Returns a new instance of Blueprint.
17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/modjs-architecture.rb', line 17 def initialize(config, root = nil) @config = { blueprint: 'modjs', src_dir: 'modules', build_dir: 'application', dependencies: [], autoload: [] } @config.merge! config unless config.nil? super(@config, root) @directories = %w'application elements lib models modules plugins spec templates' end |