Exception: MonkeyPatch::MissingGem

Inherits:
Error
  • Object
show all
Defined in:
lib/monkey_patch.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gem_name, version) ⇒ MissingGem

Returns a new instance of MissingGem.



10
11
12
13
# File 'lib/monkey_patch.rb', line 10

def initialize(gem_name, version)
  @gem_name = gem_name
  @version  = version
end

Instance Attribute Details

#gem_nameObject (readonly)

Returns the value of attribute gem_name.



8
9
10
# File 'lib/monkey_patch.rb', line 8

def gem_name
  @gem_name
end

#versionObject (readonly)

Returns the value of attribute version.



8
9
10
# File 'lib/monkey_patch.rb', line 8

def version
  @version
end

Instance Method Details

#to_sObject



15
16
17
# File 'lib/monkey_patch.rb', line 15

def to_s
  "attempted to patch missing gem: #{gem_name} v#{version}"
end