class Rush::Path

A tiny wrapper around ENV

Public Class Methods

executables() click to toggle source
# File lib/rush/path.rb, line 3
def self.executables
  ENV['PATH'].split(':')
    .select { |f| ::File.directory?(f) }
    .map { |x| Rush::Dir.new(x).entries.map(&:name) }
    .flatten
end