diff options
Diffstat (limited to 'Library/Homebrew/PATH.rb')
| -rw-r--r-- | Library/Homebrew/PATH.rb | 10 | 
1 files changed, 10 insertions, 0 deletions
| diff --git a/Library/Homebrew/PATH.rb b/Library/Homebrew/PATH.rb index 6c5cd9e41..0bee1a5f2 100644 --- a/Library/Homebrew/PATH.rb +++ b/Library/Homebrew/PATH.rb @@ -1,4 +1,9 @@  class PATH +  include Enumerable +  extend Forwardable + +  def_delegator :@paths, :each +    def initialize(*paths)      @paths = parse(*paths)    end @@ -13,6 +18,11 @@ class PATH      self    end +  def insert(index, *paths) +    @paths = parse(*@paths.insert(index, *paths)) +    self +  end +    def to_ary      @paths    end | 
