module MotionBlender::Ext::Raketime

Public Instance Methods

except(file = nil) click to toggle source
# File lib/motion_blender/ext/raketime.rb, line 11
def except file = nil
  file ||= caller.first.split(':', 2).first
  config.excepted_files << file
end
incept(file = nil) click to toggle source
# File lib/motion_blender/ext/raketime.rb, line 6
def incept file = nil
  file ||= caller.first.split(':', 2).first
  config.incepted_files << file
end
motion?() click to toggle source
# File lib/motion_blender/ext/raketime.rb, line 33
def motion?
  !!(defined?(Motion) && defined?(Motion::Project))
end
raketime() { || ... } click to toggle source
# File lib/motion_blender/ext/raketime.rb, line 45
def raketime
  yield if motion?
end
raketime?() click to toggle source
# File lib/motion_blender/ext/raketime.rb, line 37
def raketime?
  true
end
runtime() click to toggle source
# File lib/motion_blender/ext/raketime.rb, line 49
def runtime
end
runtime?() click to toggle source
# File lib/motion_blender/ext/raketime.rb, line 41
def runtime?
  false
end
use_motion_dir(dir = nil) click to toggle source
# File lib/motion_blender/ext/raketime.rb, line 16
def use_motion_dir dir = nil
  return unless motion?

  unless dir
    file = caller.first.split(':', 2).first
    Pathname.new(file).dirname.ascend do |path|
      if $LOAD_PATH.include?(path.to_s)
        dir = path.dirname.join('motion').to_s
        break
      end
    end
  end
  unless config.motion_dirs.include? dir
    config.motion_dirs << dir
  end
end