Sha256: 9b1a36e65eee338a1a3f53f711b56110cd82cbf2ab3db4075a4cff7756b9303d
Contents?: true
Size: 462 Bytes
Versions: 1
Compression:
Stored size: 462 Bytes
Contents
module Clearest class AbstractGenerator def initialize(_options = {}) @options = _options @template_root = File.expand_path("../../../template", __FILE__) @@dm ||= DataMapper.setup(:default, _options[:dsn]) @options[:list_folder] = Dir.glob("#{@template_root}/*").reject {|folder| (File::file? folder) }.map {|folder| folder.split('/').last } @options[:list_folder] << '.' @options[:prefix] ||= '/api' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
clearest-0.0.1a | lib/clearest/generators/1_abstract.rb |