Class: Inflexion::Patch

Inherits:
Object
  • Object
show all
Defined in:
lib/inflexion/patch.rb

Instance Method Summary collapse

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

Returns:

  • (Boolean)


10
11
12
# File 'lib/inflexion/patch.rb', line 10

def exists?
  patches[@key].key?(@str)
end

#to_sObject



14
15
16
# File 'lib/inflexion/patch.rb', line 14

def to_s
  patches[@key][@str]
end