lib/sproutcore/library.rb
# The framework directories found in this library
The framework directories found in this library
The framework directories found in this library
def framework_directories
      return @framework_dirs unless @framework_dirs.nil?
      framework_path = File.join(@root_path, 'frameworks')
      if File.exists?(framework_path)
        @framework_dirs = Dir.entries(framework_path).reject do |x|
          (/^\./ =~ x) || !File.directory?(File.join(framework_path,x))
        end
      else
        @framework_dirs = []
      end
      return @framework_dirs
    end
def framework_directories return @framework_dirs unless @framework_dirs . nil? framework_path = File . join ( @root_path , 'frameworks' ) if File . exists? ( framework_path ) @framework_dirs = Dir . entries ( framework_path ) . reject do | x | ( / ^ \. / =~ x ) || ! File . directory? ( File . join ( framework_path , x ) ) end else @framework_dirs = [ ] end return @framework_dirs end
The framework directories found in this library
The framework directories found in this library