Sha256: b4724dd7b4946f1dacd8c29df64f5b0631e72374586bdcdebc48f5b3b30e49ca

Contents?: true

Size: 495 Bytes

Versions: 25

Compression:

Stored size: 495 Bytes

Contents

require 'bindata/dsl'
require 'bindata/struct'

module BinData
  # A Record is a declarative wrapper around Struct.
  #
  # See +Struct+ for more info.
  class Record < BinData::Struct
    extend DSLMixin

    unregister_self
    dsl_parser    :struct
    arg_processor :record
  end

  class RecordArgProcessor < StructArgProcessor
    include MultiFieldArgSeparator

    def sanitize_parameters!(obj_class, params)
      super(obj_class, params.merge!(obj_class.dsl_params))
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
bindata-2.5.0 lib/bindata/record.rb
bindata-2.4.15 lib/bindata/record.rb
bindata-2.4.14 lib/bindata/record.rb
bindata-2.4.13 lib/bindata/record.rb
bindata-2.4.12 lib/bindata/record.rb
bindata-2.4.11 lib/bindata/record.rb
bindata-2.4.10 lib/bindata/record.rb
bindata-2.4.9 lib/bindata/record.rb
bindata-2.4.8 lib/bindata/record.rb
bindata-2.4.7 lib/bindata/record.rb
bindata-2.4.6 lib/bindata/record.rb
bindata-2.4.5 lib/bindata/record.rb
bindata-2.4.4 lib/bindata/record.rb
bindata-2.4.3 lib/bindata/record.rb
bindata-2.4.2 lib/bindata/record.rb
bindata-2.4.1 lib/bindata/record.rb
bindata-2.4.0 lib/bindata/record.rb
bindata-2.3.5 lib/bindata/record.rb
bindata-2.3.4 lib/bindata/record.rb
bindata-2.3.3 lib/bindata/record.rb