Class: OPatch::Patcher

Inherits:
Object
  • Object
show all
Defined in:
lib/o_patch/patcher.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



2
3
4
# File 'lib/o_patch/patcher.rb', line 2

def attributes
  @attributes
end

#entityObject (readonly)

Returns the value of attribute entity.



2
3
4
# File 'lib/o_patch/patcher.rb', line 2

def entity
  @entity
end

Class Method Details

.patch(entity, attributes, &block) ⇒ Object



11
12
13
# File 'lib/o_patch/patcher.rb', line 11

def self.patch(entity, attributes, &block)
  new(entity, attributes).instance_exec(&block)
end