class MotionBlender::Interpreters::RequireRelativeInterpreter

Public Instance Methods

candidates(arg) click to toggle source
# File lib/motion_blender/interpreters/require_relative_interpreter.rb, line 8
def candidates arg
  path = Pathname.new(file).dirname.join(arg)
  exts = path.extname.empty? ? ['', '.rb'] : ['']
  Enumerator.new do |y|
    exts.each do |ext|
      y << Pathname.new("#{path}#{ext}")
    end
  end
end