Sha256: d5c4eb7ff17415ec3505fc3768387c8d9f124c5492b479bd66ab77c49a63b673
Contents?: true
Size: 449 Bytes
Versions: 1
Compression:
Stored size: 449 Bytes
Contents
module Padrino module Generators class << self def load_paths @load_paths ||= Dir[File.dirname(__FILE__) + '/generators/{app,mailer,controller,model,migration}.rb'] end def mappings @mappings ||= SupportLite::OrderedHash.new end def add_generator(name, klass) mappings[name] = klass end def lockup! load_paths.each { |lib| require lib } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
padrino-gen-0.6.1 | lib/padrino-gen/generators.rb |