lib/ore/template/interpolations.rb in ore-0.3.0 vs lib/ore/template/interpolations.rb in ore-0.4.0

- old
+ new

@@ -5,18 +5,21 @@ # The following keywords are supported: # # * `[name]` - The name of the project. # * `[project_dir]` - The directory base-name derived from the project # name. - # * `[namespace_dir]` - The full directory path derived from the + # * `[namespace_path]` - The full directory path derived from the # project name. + # * `[namespace_dir]` - The last directory name derivied from the + # project name. # module Interpolations # The accepted interpolation keywords that may be used in paths @@keywords = %w[ name project_dir + namespace_path namespace_dir ] protected @@ -32,11 +35,11 @@ # # @example Assuming `@project_dir` contains `my_project`. # interpolate("lib/[project_dir].rb") # # => "lib/my_project.rb" # - # @example Assuming `@namespace_dir` contains `my/project`. - # interpolate("spec/[namespace_dir]_spec.rb") + # @example Assuming `@namespace_path` contains `my/project`. + # interpolate("spec/[namespace_path]_spec.rb") # # => "spec/my/project_spec.rb" # def interpolate(path) dirs = path.split(File::SEPARATOR)