Sha256: 82b0bbb86a762bbb4653d29c7b4d2557c49101985842fa136ea46fbba659078a
Contents?: true
Size: 588 Bytes
Versions: 14
Compression:
Stored size: 588 Bytes
Contents
require_relative "project_generator" module Foobara module Generators module EmptyRubyProjectGenerator module Generators class LibGenerator < ProjectGenerator def template_path ["lib", "project_require_file.rb.erb"] end def target_path *path, file = org_slash_project_underscore.split("/") ["lib", *path, "#{file}.rb"] end def path_to_src up = [".."] * (target_path.size - 1) [*up, "src"].join("/") end end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems