Class: Inflexion::Patch
- Inherits:
-
Object
- Object
- Inflexion::Patch
- Defined in:
- lib/inflexion/patch.rb
Instance Method Summary collapse
- #exists? ⇒ Boolean
-
#initialize(key, str) ⇒ Patch
constructor
A new instance of Patch.
- #to_s ⇒ Object
Constructor Details
#initialize(key, str) ⇒ Patch
Returns a new instance of Patch.
5 6 7 8 |
# File 'lib/inflexion/patch.rb', line 5 def initialize(key, str) @key = key @str = str end |
Instance Method Details
#exists? ⇒ Boolean
10 11 12 |
# File 'lib/inflexion/patch.rb', line 10 def exists? patches[@key].key?(@str) end |
#to_s ⇒ Object
14 15 16 |
# File 'lib/inflexion/patch.rb', line 14 def to_s patches[@key][@str] end |