Class: FsTemplate::ProjectConfig

Inherits:
Object
  • Object
show all
Includes:
FromHash
Defined in:
lib/fs_template/project.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#base(*args) ⇒ Object

Returns the value of attribute base.



54
55
56
# File 'lib/fs_template/project.rb', line 54

def base
  @base
end

#bodyObject

Returns the value of attribute body.



54
55
56
# File 'lib/fs_template/project.rb', line 54

def body
  @body
end

Instance Method Details

#load!Object



69
70
71
72
# File 'lib/fs_template/project.rb', line 69

def load!
  c = self
  eval(body)
end

#overlay(name) ⇒ Object



65
66
67
# File 'lib/fs_template/project.rb', line 65

def overlay(name)
  self.overlays << name
end