Class: Caster::Clone

Inherits:
Object
  • Object
show all
Defined in:
lib/caster/transform/clone.rb

Instance Method Summary collapse

Constructor Details

#initialize(source) ⇒ Clone

Returns a new instance of Clone.



4
5
6
# File 'lib/caster/transform/clone.rb', line 4

def initialize source
  @source = source
end

Instance Method Details

#execute(doc) ⇒ Object



8
9
10
11
# File 'lib/caster/transform/clone.rb', line 8

def execute doc
  @source.delete '_rev'
  @source
end