Class: Depix::Filler
Instance Attribute Summary
Attributes inherited from Field
#desc, #length, #name, #req, #rtype
Instance Method Summary collapse
-
#consume(stack) ⇒ Object
Leave the stack alone since we skipped.
- #pack(data) ⇒ Object
- #pattern ⇒ Object
Methods inherited from Field
#clean, #consume!, emit_char, emit_r32, emit_u16, emit_u32, emit_u8, #explain, #initialize, #validate!
Constructor Details
This class inherits a constructor from Depix::Field
Instance Method Details
#consume(stack) ⇒ Object
Leave the stack alone since we skipped
162 163 164 |
# File 'lib/depix/dict.rb', line 162 def consume(stack) nil end |
#pack(data) ⇒ Object
166 167 168 |
# File 'lib/depix/dict.rb', line 166 def pack(data) raise "This is a filler, it cannot be reconstructed from a value" end |
#pattern ⇒ Object
157 158 159 |
# File 'lib/depix/dict.rb', line 157 def pattern "x#{length ? length.to_i : 1}" end |