Class: OPatch::Patcher
- Inherits:
-
Object
- Object
- OPatch::Patcher
- Defined in:
- lib/o_patch/patcher.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#entity ⇒ Object
readonly
Returns the value of attribute entity.
Class Method Summary collapse
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
2 3 4 |
# File 'lib/o_patch/patcher.rb', line 2 def attributes @attributes end |
#entity ⇒ Object (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 |