Exception: Cult::Driver::GemNeededError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/cult/driver.rb

Overview

This is raised when a Driver is instantiated, but the required gems are not installed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gems) ⇒ GemNeededError

Returns a new instance of GemNeededError.



11
12
13
14
# File 'lib/cult/driver.rb', line 11

def initialize(gems)
  @gems = gems
  super(message)
end

Instance Attribute Details

#gemsObject (readonly)

Returns the value of attribute gems.



10
11
12
# File 'lib/cult/driver.rb', line 10

def gems
  @gems
end

Instance Method Details

#messageObject



16
17
18
# File 'lib/cult/driver.rb', line 16

def message
  "gems required: #{gems.inspect}"
end