Class: Math::SetTheory::NullSet

Inherits:
NumberSet show all
Includes:
Singleton
Defined in:
lib/ruuuby/math/set_theory/discrete/null_set.rb

Instance Attribute Summary

Attributes inherited from NumberSet

#name, #symbol, #𝔠

Attributes inherited from Closure

#axioms

Instance Method Summary collapse

Methods inherited from NumberSet

#countable?, #countably_infinite?, #finite?, #uncountable?, #∌?, #⊂?, #⊃?, #⊄?, #⊅?, #⊆?, #⊇?

Constructor Details

#initializeNullSet

Returns a new instance of NullSet.



10
11
12
# File 'lib/ruuuby/math/set_theory/discrete/null_set.rb', line 10

def initialize
  super(:ℕ𝕌𝕃𝕃, ::Math::SetTheory::NumberSet::AlephNumbers::UNKNOWN_ℕ)
end

Instance Method Details

#∋?(n) ⇒ Boolean

Parameters:

  • n (*)

Returns:

  • (Boolean)


17
18
19
20
21
22
23
# File 'lib/ruuuby/math/set_theory/discrete/null_set.rb', line 17

def ∋?(n)
  if n.respond_to?(:∅?)
    n.∅?
  else
    false
  end
end