Class: BitStruct::PadField

Inherits:
Field
  • Object
show all
Defined in:
lib/bit-struct/pad-field.rb

Overview

Class for fixed length padding.

Instance Attribute Summary

Attributes inherited from Field

#default, #display_name, #format, #length, #name, #offset, #options

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Field

#class_name, default, #describe, #initialize, #inspect_in_object

Constructor Details

This class inherits a constructor from BitStruct::Field

Class Method Details

.class_nameObject

Used in describe.



5
6
7
# File 'lib/bit-struct/pad-field.rb', line 5

def self.class_name
  @class_name ||= "padding"
end

Instance Method Details

#add_accessors_to(cl, attr = name) ⇒ Object

:nodoc:



9
10
11
# File 'lib/bit-struct/pad-field.rb', line 9

def add_accessors_to(cl, attr = name) # :nodoc:
  # No accessors for padding.
end

#inspectable?Boolean

Returns:

  • (Boolean)


13
# File 'lib/bit-struct/pad-field.rb', line 13

def inspectable?; false; end