Class: C::Cast

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

Instance Method Summary collapse

Instance Method Details

#recursively_replace_casts!(typenames_and_types) ⇒ Object

Recursively replace typenames with actual types.



851
852
853
854
855
856
# File 'lib/csquare.rb', line 851

def recursively_replace_casts! typenames_and_types
  each do |n|
    n.recursively_replace_casts! typenames_and_types
  end
  self.type.name = typenames_and_types[self.type.name] if (self.type.CustomType? || self.type.Struct?) && typenames_and_types.has_key?(self.type.name)
end