module Kernel
This is needed because of Ruby bug #9244
Public Instance Methods
require(path)
click to toggle source
# File lib/syskit/custom_require.rb, line 4 def require(path) # Only deal with paths starting with models/, the other ones are # unambiguous if path =~ /^models\// Roby.app.search_path.each do |app_dir| full_path = File.join(app_dir, path) if File.file?(full_path) || File.file?("#{full_path}.rb") return syskit_original_require(full_path) end end end syskit_original_require(path) end
Also aliased as: syskit_original_require