Method: Jets::Paths::Root#add

Defined in:
lib/jets/paths.rb

#add(path, options = {}) ⇒ Object



61
62
63
64
# File 'lib/jets/paths.rb', line 61

def add(path, options = {})
  with = Array(options.fetch(:with, path))
  @root[path] = Path.new(self, path, with, options)
end