Module: Autils
- Included in:
- AgMultiEditor, ArcadiaGemsWizard, DirProjects, FilesHistrory, RubyDebug
- Defined in:
- lib/a-commons.rb
Instance Method Summary collapse
Instance Method Details
#full_in_path_command(_command = nil) ⇒ Object
460 461 462 463 464 465 466 467 468 469 470 471 |
# File 'lib/a-commons.rb', line 460 def full_in_path_command(_command=nil) return nil if _command.nil? _ret = nil RUBY_PLATFORM =~ /win32|mingw/ ? _sep = ';':_sep=':' ENV['PATH'].split(_sep).each{|_path| _file = File.join(_path, _command) if FileTest.exist?(_file) _ret = _file end } _ret end |
#is_windows? ⇒ Boolean
473 474 475 |
# File 'lib/a-commons.rb', line 473 def is_windows? RUBY_PLATFORM =~ /mingw|mswin/ end |