Module: FileData::InstanceMethods

Defined in:
lib/flat/file_data.rb

Overview

Instance Methods

Defines behavior for instances of subclasses of Flat::File regarding the accessing of its internal data structures.

Instance Method Summary collapse

Instance Method Details

#fieldsObject

Returns the fields of this Flat::File subclass as defined in its class



112
113
114
# File 'lib/flat/file_data.rb', line 112

def fields
  self.class.fields
end

#pack_formatObject

Returns the pack_format of this Flat::File subclass as defined in its class



105
106
107
# File 'lib/flat/file_data.rb', line 105

def pack_format
  self.class.pack_format
end

#widthObject

Returns the width of this Flat::File subclass as defined in its class



98
99
100
# File 'lib/flat/file_data.rb', line 98

def width
  self.class.width
end