Exception: Bits::MissingDependencies

Inherits:
CommandException show all
Defined in:
lib/bits/exceptions.rb

Overview

Indicate that some dependencies are missing

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(missing) ⇒ MissingDependencies

Returns a new instance of MissingDependencies.



15
16
17
18
# File 'lib/bits/exceptions.rb', line 15

def initialize(missing)
  @missing = missing
  super "Missing dependencies: #{missing_s}"
end

Instance Attribute Details

#missingObject (readonly)

Returns the value of attribute missing.



13
14
15
# File 'lib/bits/exceptions.rb', line 13

def missing
  @missing
end

Instance Method Details

#missing_sObject



20
21
22
# File 'lib/bits/exceptions.rb', line 20

def missing_s
  @missing.join ', '
end