class FunWith::Files::RootPath

Public Class Methods

rootify( target, path ) click to toggle source
# File lib/fun_with/files/root_path.rb, line 19
def self.rootify( target, path )
  if target.respond_to?(:root)
    warn( "#{target} already responds to :root, skipping installation" )
    return nil
  end
  
  target.extend( RootPathExtensions )
  target.set_root_path( FilePath.new( path ) )
end