Module: Stupidedi::Sets

Defined in:
lib/stupidedi/sets.rb

Constructors collapse

Class Method Details

.absolute(other, universe = other) ⇒ Cantor::AbsoluteSet

Returns:

  • (Cantor::AbsoluteSet)


36
37
38
# File 'lib/stupidedi/sets.rb', line 36

def absolute(other, universe = other)
  Cantor.absolute(other, universe)
end

.build(object) ⇒ Cantor::AbstractSet

Returns:

  • (Cantor::AbstractSet)


16
17
18
# File 'lib/stupidedi/sets.rb', line 16

def build(object)
  Cantor.build(object)
end

.complement(other) ⇒ Cantor::AbstractSet

Returns:

  • (Cantor::AbstractSet)


21
22
23
# File 'lib/stupidedi/sets.rb', line 21

def complement(other)
  Cantor.complement(other)
end

.emptyCantor::NullSet

Returns:

  • (Cantor::NullSet)


31
32
33
# File 'lib/stupidedi/sets.rb', line 31

def empty
  Cantor.empty
end

.universalCantor::UniversalSet

Returns:

  • (Cantor::UniversalSet)


26
27
28
# File 'lib/stupidedi/sets.rb', line 26

def universal
  Cantor.universal
end