Class: MonkeyPatch::Patcher
- Inherits:
-
Object
- Object
- MonkeyPatch::Patcher
- 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
- #announce(patch) ⇒ Object
-
#initialize(gem, version) ⇒ Patcher
constructor
A new instance of Patcher.
Constructor Details
#initialize(gem, version) ⇒ Patcher
Returns a new instance of Patcher.
36 37 38 39 |
# File 'lib/monkey_patch.rb', line 36 def initialize(gem, version) @gem = gem @version = version end |
Instance Attribute Details
#gem ⇒ Object (readonly)
Returns the value of attribute gem.
34 35 36 |
# File 'lib/monkey_patch.rb', line 34 def gem @gem end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
34 35 36 |
# File 'lib/monkey_patch.rb', line 34 def version @version end |
Instance Method Details
#announce(patch) ⇒ Object
41 42 43 |
# File 'lib/monkey_patch.rb', line 41 def announce(patch) MonkeyPatch.logger && MonkeyPatch.logger.info("MonkeyPatch (#{gem} v#{version}): #{patch}") end |