Class: RDL::Type::DotsQuery

Inherits:
TypeQuery show all
Defined in:
lib/rdl/types/dots_query.rb

Constant Summary collapse

@@cache =
nil

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Type

#canonical, leq, #nil_type?, #optional?, #to_contract, #vararg?

Class Method Details

.__new__Object



8
# File 'lib/rdl/types/dots_query.rb', line 8

alias :__new__ :new

.newObject



11
12
13
14
# File 'lib/rdl/types/dots_query.rb', line 11

def self.new
  @@cache = DotsQuery.__new__ unless @@cache
  return @@cache
end

Instance Method Details

#==(other) ⇒ Object



20
21
22
23
24
# File 'lib/rdl/types/dots_query.rb', line 20

def ==(other)
  return false if other.nil?
  other = other.canonical
  return (other.instance_of? DotsQuery)
end

#to_sObject



16
17
18
# File 'lib/rdl/types/dots_query.rb', line 16

def to_s
  "..."
end