class Minjector::Reader

Public Class Methods

read(path) click to toggle source
# File lib/minjector/reader.rb, line 7
def read(path)
  names = []
  parent = Pathname.new(path)

  parent.children.each do |child|
    next unless child.directory?

    names << child.relative_path_from(parent).to_s
  end

  names
end