Class: CodeFormatter::Environment

Inherits:
Object
  • Object
show all
Defined in:
lib/code_formatter/environment.rb

Class Method Summary collapse

Class Method Details

.exist?(command) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/code_formatter/environment.rb', line 5

def self.exist?(command)
  !`which #{command}`.empty?
end