Class: Fuzz::Executable
- Inherits:
-
Object
- Object
- Fuzz::Executable
- Defined in:
- lib/fuzz/executable.rb
Instance Method Summary collapse
- #error_if_missing ⇒ Object
-
#initialize(command) ⇒ Executable
constructor
A new instance of Executable.
Constructor Details
#initialize(command) ⇒ Executable
Returns a new instance of Executable.
6 7 8 |
# File 'lib/fuzz/executable.rb', line 6 def initialize(command) @command = command end |
Instance Method Details
#error_if_missing ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/fuzz/executable.rb', line 10 def error_if_missing if !installed? raise( MissingExecutableError, "Can't find the `#{ command }` executable!", ) end end |