class Depix::Binary::Fields::InnerField
Wrapper for a contained structure
Attributes
cast[RW]
Public Instance Methods
consume!(stack)
click to toggle source
# File lib/depix/binary/fields.rb, line 327 def consume!(stack) cast.consume!(stack) end
length()
click to toggle source
# File lib/depix/binary/fields.rb, line 319 def length cast.length end
pack(value)
click to toggle source
# File lib/depix/binary/fields.rb, line 340 def pack(value) cast.pack(value) end
pattern()
click to toggle source
# File lib/depix/binary/fields.rb, line 323 def pattern cast.pattern end
rtype()
click to toggle source
# File lib/depix/binary/fields.rb, line 331 def rtype cast end
validate!(value)
click to toggle source
Calls superclass method
Depix::Binary::Fields::Field#validate!
# File lib/depix/binary/fields.rb, line 335 def validate!(value) super(value) cast.validate!(value) if cast.respond_to?(:validate!) && (!value.nil? || req?) end