Class: Caster::Remove
- Inherits:
-
Object
- Object
- Caster::Remove
- Defined in:
- lib/caster/transform/remove.rb
Instance Method Summary collapse
- #execute(doc) ⇒ Object
-
#initialize(field) ⇒ Remove
constructor
A new instance of Remove.
Constructor Details
Instance Method Details
#execute(doc) ⇒ Object
11 12 13 14 |
# File 'lib/caster/transform/remove.rb', line 11 def execute doc @accessor.delete doc, @field doc end |