Class: Pcrd::Schema::Packer::LayoutEntry

Inherits:
Data
  • Object
show all
Defined in:
lib/pcrd/schema/packer.rb

Overview

A single entry in a layout: the column plus the padding bytes inserted before it to satisfy its alignment requirement.

Instance Attribute Summary collapse

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



21
22
23
# File 'lib/pcrd/schema/packer.rb', line 21

def column
  @column
end

#offsetObject (readonly)

Returns the value of attribute offset

Returns:

  • (Object)

    the current value of offset



21
22
23
# File 'lib/pcrd/schema/packer.rb', line 21

def offset
  @offset
end

#padding_beforeObject (readonly)

Returns the value of attribute padding_before

Returns:

  • (Object)

    the current value of padding_before



21
22
23
# File 'lib/pcrd/schema/packer.rb', line 21

def padding_before
  @padding_before
end