Class: FindExecutable

Inherits:
Struct
  • Object
show all
Defined in:
lib/find_executable.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#executableObject

Returns the value of attribute executable

Returns:

  • (Object)

    the current value of executable



1
2
3
# File 'lib/find_executable.rb', line 1

def executable
  @executable
end

Class Method Details

.call(*args) ⇒ Object



3
4
5
# File 'lib/find_executable.rb', line 3

def self.call(*args)
  new(*args).call
end

Instance Method Details

#callObject



7
8
9
# File 'lib/find_executable.rb', line 7

def call
  which(executable)
end