Method: CompleteCode#full_command

Defined in:
ext/ae-complete-code/ae-complete-code.rb

#full_command(_command = 'rct-complete') ⇒ Object



23
24
25
26
27
28
29
30
31
32
33
# File 'ext/ae-complete-code/ae-complete-code.rb', line 23

def full_command(_command='rct-complete')
  _ret = nil
  RUBY_PLATFORM.include?('win32') ? _sep = ';':_sep=':'
  ENV['PATH'].split(_sep).each{|_path|
    _file = File.join(_path, _command)
    if FileTest.exist?(_file)
        _ret = _file
    end
  }
  _ret
end