Class: AsProject::AsProjectResolver
- Inherits:
-
TemplateResolver
- Object
- Hash
- TemplateResolver
- AsProject::AsProjectResolver
- Defined in:
- lib/asproject.rb
Overview
AsProjectResolver
Instance Attribute Summary
Attributes inherited from TemplateResolver
Instance Method Summary collapse
-
#initialize(context) ⇒ AsProjectResolver
constructor
A new instance of AsProjectResolver.
- #instance_name ⇒ Object
- #project_name ⇒ Object
- #project_path ⇒ Object
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_name ⇒ Object
263 264 265 |
# File 'lib/asproject.rb', line 263 def instance_name return @context.uncapitalize(project_name) end |
#project_name ⇒ Object
267 268 269 |
# File 'lib/asproject.rb', line 267 def project_name @context.project_name end |
#project_path ⇒ Object
271 272 273 |
# File 'lib/asproject.rb', line 271 def project_path return @context.project_path end |