Module: Zippo::BinaryStructure::InstanceMethods

Defined in:
lib/zippo/binary_structure/meta.rb

Instance Method Summary collapse

Instance Method Details

#convert_to(other) ⇒ Object



138
139
140
141
142
# File 'lib/zippo/binary_structure/meta.rb', line 138

def convert_to(other)
  method = :"convert_to_#{other.object_id}"
  ::Zippo::BinaryStructure::CodeGen.define_converter_for(self.class, method, other) unless respond_to? method
  send method
end