Class: Jpegtran::Configuration
- Inherits:
-
Object
- Object
- Jpegtran::Configuration
- Defined in:
- lib/jpegtran/configuration.rb
Constant Summary collapse
- COMMAND =
:jpegtran
Instance Method Summary collapse
Instance Method Details
#default_executable ⇒ Object
14 15 16 17 |
# File 'lib/jpegtran/configuration.rb', line 14 def default_executable path = `which #{COMMAND}` $? == 0 ? path.chomp! : nil end |
#executable ⇒ Object
10 11 12 |
# File 'lib/jpegtran/configuration.rb', line 10 def executable @executable ||= default_executable end |
#executable=(path) ⇒ Object
6 7 8 |
# File 'lib/jpegtran/configuration.rb', line 6 def executable=(path) @executable = path end |