Class: Edployify::Dir
- Inherits:
-
Object
- Object
- Edployify::Dir
- Defined in:
- lib/edployify/template.rb
Instance Method Summary collapse
-
#initialize(path, base_path) ⇒ Dir
constructor
A new instance of Dir.
- #mkdir ⇒ Object
Constructor Details
#initialize(path, base_path) ⇒ Dir
Returns a new instance of Dir.
7 8 9 |
# File 'lib/edployify/template.rb', line 7 def initialize(path, base_path) @path = File.join(base_path, path) end |
Instance Method Details
#mkdir ⇒ Object
11 12 13 |
# File 'lib/edployify/template.rb', line 11 def mkdir FileUtils.mkdir_p(@path) end |