lib/parlour/rbi_generator/class_namespace.rb
# Given an array of {ClassNamespace} instances, merges them into this one.
# You MUST ensure that {mergeable?} is true for those instances.
# 
# @param others [Array<RbiGenerator::RbiObject>] An array of other {ClassNamespace} instances.
# @return [void]
Given an array of {ClassNamespace} instances, merges them into this one.
You MUST ensure that {mergeable?} is true for those instances.
Given an array of { ClassNamespace } instances merges them into this one . You MUST ensure that { mergeable? } is true for those instances .
def merge_into_self(others)
        super
        others.each do |other|
          next unless ClassNamespace === other
          other = T.cast(other, ClassNamespace)
          @superclass = other.superclass unless superclass
        end
      end
def merge_into_self ( others ) super others . each do | other | next unless ClassNamespace === other other = T . cast ( other , ClassNamespace ) @superclass = other . superclass unless superclass end end
Given an array of {ClassNamespace} instances, merges them into this one.
Given an array of { ClassNamespace } instances merges them into this one .
None
void
others
An array of other {ClassNamespace} instances.
An array of other { ClassNamespace } instances .