Class: ReSorcery::Linked::LinkClassFactory

Inherits:
Object
  • Object
show all
Extended by:
Decoder::BuiltinDecoders
Defined in:
lib/re_sorcery/linked/link_class_factory.rb

Class Method Summary collapse

Class Method Details



12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/re_sorcery/linked/link_class_factory.rb', line 12

def make_link_class
  fields = build_fields

  Class.new do
    include Fielded

    def initialize(args)
      @args = args
    end

    fields.each { |(name, decoder, value)| field name, decoder, value }
  end
end