Class: Framer::Builder
- Inherits:
-
Object
- Object
- Framer::Builder
- Defined in:
- lib/framer/builder.rb
Instance Attribute Summary collapse
-
#dirs ⇒ Object
readonly
Returns the value of attribute dirs.
Instance Method Summary collapse
- #build ⇒ Object
- #get_dirs(root, tree) ⇒ Object
-
#initialize(path, tree) ⇒ Builder
constructor
A new instance of Builder.
Constructor Details
#initialize(path, tree) ⇒ Builder
Returns a new instance of Builder.
7 8 9 |
# File 'lib/framer/builder.rb', line 7 def initialize(path, tree) @dirs = get_dirs(path, tree) end |
Instance Attribute Details
#dirs ⇒ Object (readonly)
Returns the value of attribute dirs.
5 6 7 |
# File 'lib/framer/builder.rb', line 5 def dirs @dirs end |
Instance Method Details
#build ⇒ Object
11 12 13 |
# File 'lib/framer/builder.rb', line 11 def build FileUtils.mkdir_p @dirs end |