Class: Twilic::Core::Model::StringMode
- Inherits:
-
Object
- Object
- Twilic::Core::Model::StringMode
- Defined in:
- lib/twilic/core/model.rb
Defined Under Namespace
Classes: Entry
Constant Summary collapse
- EMPTY =
Entry.new(0)
- LITERAL =
Entry.new(1)
- REF =
Entry.new(2)
- PREFIX_DELTA =
Entry.new(3)
- INLINE_ENUM =
Entry.new(4)
Class Method Summary collapse
Class Method Details
.from_byte(b) ⇒ Object
98 99 100 101 102 |
# File 'lib/twilic/core/model.rb', line 98 def self.from_byte(b) return Entry.new(b) if (0..4).cover?(b) nil end |