Class: Math::SetTheory::EmptySet
- Includes:
- Singleton
- Defined in:
- lib/ruuuby/math/set_theory/discrete/empty_set.rb
Overview
aliased by+∅+
Instance Attribute Summary
Attributes inherited from NumberSet
Attributes inherited from Closure
Instance Method Summary collapse
-
#initialize ⇒ EmptySet
constructor
A new instance of EmptySet.
- #∋?(n) ⇒ Boolean
-
#⊂?(s) ⇒ Boolean
False (always).
- #⊃?(s) ⇒ Boolean
-
#⊆?(s) ⇒ Boolean
True (always).
-
#⊇?(s) ⇒ Boolean
True (always).
Methods inherited from NumberSet
#countable?, #countably_infinite?, #finite?, #uncountable?, #∌?, #⊄?, #⊅?
Constructor Details
#initialize ⇒ EmptySet
Returns a new instance of EmptySet.
13 |
# File 'lib/ruuuby/math/set_theory/discrete/empty_set.rb', line 13 def initialize; super(:∅, 0); end |
Instance Method Details
#∋?(n) ⇒ Boolean
18 |
# File 'lib/ruuuby/math/set_theory/discrete/empty_set.rb', line 18 def ∋?(n); false; end |
#⊂?(s) ⇒ Boolean
Returns false (always).
23 |
# File 'lib/ruuuby/math/set_theory/discrete/empty_set.rb', line 23 def ⊂?(s); false; end |
#⊃?(s) ⇒ Boolean
33 |
# File 'lib/ruuuby/math/set_theory/discrete/empty_set.rb', line 33 def ⊃?(s); false; end |
#⊆?(s) ⇒ Boolean
Returns true (always).
28 |
# File 'lib/ruuuby/math/set_theory/discrete/empty_set.rb', line 28 def ⊆?(s); s.symbol == self.symbol; end |
#⊇?(s) ⇒ Boolean
Returns true (always).
38 |
# File 'lib/ruuuby/math/set_theory/discrete/empty_set.rb', line 38 def ⊇?(s); s.symbol == self.symbol; end |