Exception: MonkeyPatch::MissingGem
- Defined in:
- lib/monkey_patch.rb
Instance Attribute Summary collapse
-
#gem_name ⇒ Object
readonly
Returns the value of attribute gem_name.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(gem_name, version) ⇒ MissingGem
constructor
A new instance of MissingGem.
- #to_s ⇒ Object
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_name ⇒ Object (readonly)
Returns the value of attribute gem_name.
8 9 10 |
# File 'lib/monkey_patch.rb', line 8 def gem_name @gem_name end |
#version ⇒ Object (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_s ⇒ Object
15 16 17 |
# File 'lib/monkey_patch.rb', line 15 def to_s "attempted to patch missing gem: #{gem_name} v#{version}" end |