Method: Aqua::Translator#initialize

Defined in:
lib/aqua/object/translator.rb

#initialize(base_object, base_id = nil) ⇒ Translator

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Although most of what the translator does happens via class level methods, instantiation happens to maintain a reference to the base object when packing/saving externals and attachments. It is also needed in the unpack process to locate attachments.

Parameters:

  • (Aquatic Object)


36
37
38
# File 'lib/aqua/object/translator.rb', line 36

def initialize( base_object, base_id=nil )
  load_base( base_object, base_id )
end