In Files

Methods

Class/Module Index [+]

Quicksearch

Demo

Public Class Methods

find_file(basename) click to toggle source
# File gtk2/sample/gtk-demo/common.rb, line 13
def self.find_file(basename)
  %(. /usr/share/gtk-2.0/demo /usr/local/share/gtk-2.0/demo/).each do |dirname|
    path = File.join(dirname, basename)
    if File.exist?(path)
      return path
    end
  end

  raise "#{basename}: No such file or directory"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.