Exception: MonkeyPatch::UpdateRequired
- Defined in:
- lib/monkey_patch.rb
Instance Attribute Summary collapse
-
#gem ⇒ Object
readonly
Returns the value of attribute gem.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(gem, version) ⇒ UpdateRequired
constructor
A new instance of UpdateRequired.
- #to_s ⇒ Object
Constructor Details
#initialize(gem, version) ⇒ UpdateRequired
Returns a new instance of UpdateRequired.
23 24 25 26 |
# File 'lib/monkey_patch.rb', line 23 def initialize(gem, version) @gem = gem @version = version end |
Instance Attribute Details
#gem ⇒ Object (readonly)
Returns the value of attribute gem.
21 22 23 |
# File 'lib/monkey_patch.rb', line 21 def gem @gem end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
21 22 23 |
# File 'lib/monkey_patch.rb', line 21 def version @version end |
Instance Method Details
#to_s ⇒ Object
28 29 30 |
# File 'lib/monkey_patch.rb', line 28 def to_s "attempted to patch wrong version of gem: #{gem.name} v#{version} (installed version is #{gem.version.to_s})" end |