Method: TokenCollection.read
- Defined in:
- lib/artbase-cocos/collection/token.rb
.read(path) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/artbase-cocos/collection/token.rb', line 5 def self.read( path ) puts "==> reading collection config >#{path}<..." config = read_yaml( path ) ## note: ## allow sources to be empty - use [] quick hack for now - why? why not? ## allow count to be empty - use 999 quick hack for now - why? why not? ## new( config['slug'], config['count'] || 999, token_base: config['token_base'], image_base: config['image_base'], format: config['format'], source: config['source'] || [], offset: config['offset'] || 0 ) end |