Class: Lorax::Delta

Inherits:
Object
  • Object
show all
Defined in:
lib/lorax/delta.rb

Direct Known Subclasses

DeleteDelta, InsertDelta, ModifyDelta

Defined Under Namespace

Classes: NodeNotFoundError

Instance Method Summary collapse

Instance Method Details

#apply!(document) ⇒ Object

Raises:

  • (NotImplementedError)

5
6
7
# File 'lib/lorax/delta.rb', line 5

def apply!(document)
  raise NotImplementedError, self.class.to_s
end

#inspectObject


9
10
11
# File 'lib/lorax/delta.rb', line 9

def inspect
  "#<#{self.class.name}:#{sprintf("0x%x", object_id)} #{descriptor.inspect}>"
end