Method: RDL::Type::VarargType#match

Defined in:
lib/rdl/types/vararg.rb

#match(other) ⇒ Object



43
44
45
46
47
48
# File 'lib/rdl/types/vararg.rb', line 43

def match(other)
  other = other.canonical
  other = other.type if other.instance_of? AnnotatedArgType
  return true if other.instance_of? WildQuery
  return (other.instance_of? VarargType) && (@type.match(other.type))
end