Class: AsProject::AsProjectResolver

Inherits:
TemplateResolver show all
Defined in:
lib/asproject.rb

Overview

AsProjectResolver

Instance Attribute Summary

Attributes inherited from TemplateResolver

#ignore_all, #replace_all

Instance Method Summary collapse

Methods inherited from TemplateResolver

#b, #clean_file_name, #copy_file, #copy_files, #is_binary?, #render_file, #should_render?, #write_file?

Constructor Details

#initialize(context) ⇒ AsProjectResolver

Returns a new instance of AsProjectResolver.



258
259
260
261
# File 'lib/asproject.rb', line 258

def initialize(context)
  super()
  @context = context
end

Instance Method Details

#instance_nameObject



263
264
265
# File 'lib/asproject.rb', line 263

def instance_name
  return @context.uncapitalize(project_name)
end

#project_nameObject



267
268
269
# File 'lib/asproject.rb', line 267

def project_name
  @context.project_name
end

#project_pathObject



271
272
273
# File 'lib/asproject.rb', line 271

def project_path
  return @context.project_path
end