Class: Twilic::Core::Model::PatchOpcode
- Inherits:
-
Object
- Object
- Twilic::Core::Model::PatchOpcode
- Defined in:
- lib/twilic/core/model.rb
Defined Under Namespace
Classes: Entry
Constant Summary collapse
- KEEP =
Entry.new(0)
- REPLACE_SCALAR =
Entry.new(1)
- REPLACE_VECTOR =
Entry.new(2)
- APPEND_VECTOR =
Entry.new(3)
- TRUNCATE_VECTOR =
Entry.new(4)
- DELETE_FIELD =
Entry.new(5)
- INSERT_FIELD =
Entry.new(6)
- STRING_REF =
Entry.new(7)
- PREFIX_DELTA =
Entry.new(8)
Class Method Summary collapse
Class Method Details
.from_byte(b) ⇒ Object
210 211 212 213 214 |
# File 'lib/twilic/core/model.rb', line 210 def self.from_byte(b) return Entry.new(b) if b <= 8 nil end |