Class: F4R::Encoder::RegistryBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/f4r.rb

Overview

F4R::Encoder requires a properly built Registry to be able to encode.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(records, source) ⇒ RegistryBuilder

Returns a new instance of RegistryBuilder.



1431
1432
1433
1434
1435
# File 'lib/f4r.rb', line 1431

def initialize(records, source)
  @records = records
  @source = source
  source ? clone_definitions : build_definitions
end

Instance Attribute Details

#registryRegistry (readonly)

Returns:



1429
1430
1431
# File 'lib/f4r.rb', line 1429

def registry
  @registry
end