Class: ReplaceManager
Defined in: | lib/Types/StructuredTypes.coffee |
Inherits: | ListManager |
Overview
Adds support for replace. The ReplaceManager manages Replaceable operations. Each Replaceable holds a value that is now replaceable.
The Word-type has implemented support for replace
Instance Method Summary
- # (void) replace(content) Replace the existing word with a new word.
- # (String) val() Get the value of this Word
- # (void) _encode() Encode this operation in such a way that it can be parsed by remote peers.
Inherited Method Summary
Methods inherited from
ListManager
#getLastOperation #getFirstOperation #toArray #getOperationByPosition
Constructor Details
#
(void)
constructor(initial_content, uid, beginning, end, prev, next, origin)
Instance Method Details
#
(void)
replace(content)
Replace the existing word with a new word.
#
(String)
val()
Get the value of this Word
#
(void)
_encode()
Encode this operation in such a way that it can be parsed by remote peers.