Sha256: 69272b628bf137d937c8c7924073de6e62f7e384835ad4da72866cd09597c450
Contents?: true
Size: 651 Bytes
Versions: 1
Compression:
Stored size: 651 Bytes
Contents
require "inflecto" require "dry/web/roda/generate" module Dry module Web module Roda module Generators class FlatProject attr_reader :generate def initialize @generate = Generate.new("flat_project") end def call(target_dir) generate.(target_dir, prepare_scope(target_dir)) end private def prepare_scope(target_dir) { underscored_app_name: Inflecto.underscore(target_dir), camel_cased_app_name: Inflecto.camelize(target_dir) } end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dry-web-roda-0.6.1 | lib/dry/web/roda/generators/flat_project.rb |