class Framer::Builder
Attributes
dirs[R]
Public Class Methods
new(path, tree)
click to toggle source
# File lib/framer/builder.rb, line 7 def initialize(path, tree) @dirs = get_dirs(path, tree) end
Public Instance Methods
build()
click to toggle source
# File lib/framer/builder.rb, line 11 def build FileUtils.mkdir_p @dirs end
get_dirs(root, tree)
click to toggle source
# File lib/framer/builder.rb, line 15 def get_dirs(root, tree) tree.map do |key, value| new_root = File.join(root, key.to_s) [new_root, get_dirs(new_root, value)] end.flatten end