Class: Llama::Project
- Inherits:
-
Object
- Object
- Llama::Project
- Defined in:
- lib/llama/project.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#template ⇒ Object
Returns the value of attribute template.
Instance Method Summary collapse
-
#initialize(name, template_name) ⇒ Project
constructor
A new instance of Project.
- #path ⇒ Object
- #write_template! ⇒ Object
Constructor Details
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/llama/project.rb', line 3 def name @name end |
#template ⇒ Object
Returns the value of attribute template.
3 4 5 |
# File 'lib/llama/project.rb', line 3 def template @template end |
Instance Method Details
#path ⇒ Object
14 15 16 |
# File 'lib/llama/project.rb', line 14 def path File.join(Dir.pwd, name) end |
#write_template! ⇒ Object
10 11 12 |
# File 'lib/llama/project.rb', line 10 def write_template! template.render!(path, name) end |