Class: Dougie::Builder
- Inherits:
-
Object
- Object
- Dougie::Builder
- Defined in:
- lib/dougie/builder.rb
Instance Attribute Summary collapse
-
#folder ⇒ Object
Returns the value of attribute folder.
Instance Method Summary collapse
- #folder_path ⇒ Object
-
#initialize ⇒ Builder
constructor
A new instance of Builder.
- #setup(folder = nil) ⇒ Object
Constructor Details
#initialize ⇒ Builder
Returns a new instance of Builder.
7 8 |
# File 'lib/dougie/builder.rb', line 7 def initialize end |
Instance Attribute Details
#folder ⇒ Object
Returns the value of attribute folder.
5 6 7 |
# File 'lib/dougie/builder.rb', line 5 def folder @folder end |
Instance Method Details
#folder_path ⇒ Object
16 17 18 |
# File 'lib/dougie/builder.rb', line 16 def folder_path "#{ROOT}/#{folder}" end |
#setup(folder = nil) ⇒ Object
10 11 12 13 14 |
# File 'lib/dougie/builder.rb', line 10 def setup folder=nil self.folder = "#{folder.chomp("/").reverse.chomp("/").reverse}/" if folder setup_directory folder_path setup_config end |