Module | HookScriptAPI |
In: |
lib/mime-types-1.16/setup.rb
|
This module requires: srcdir_root, objdir_root, relpath
srcdir/objdir (works only in the package directory)
# File lib/mime-types-1.16/setup.rb, line 706 def curr_srcdir "#{srcdir_root()}/#{relpath()}" end
obsolete: use metaconfig to change configuration
# File lib/mime-types-1.16/setup.rb, line 698 def set_config(key, val) @config[key] = val end
# File lib/mime-types-1.16/setup.rb, line 742 def srcdirectories(path = '.') srcentries(path).select {|fname| File.dir?(File.join(curr_srcdir(), path, fname)) } end
# File lib/mime-types-1.16/setup.rb, line 730 def srcentries(path = '.') Dir.open("#{curr_srcdir()}/#{path}") {|d| return d.to_a - %w(. ..) } end