Class: RDL::Type::DotsQuery
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
8
|
# File 'lib/rdl/types/dots_query.rb', line 8
alias :__new__ :new
|
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
|
16
17
18
|
# File 'lib/rdl/types/dots_query.rb', line 16
def to_s
"..."
end
|