Class: EmptySetClass

Inherits:
NaughtClass show all
Includes:
SGML
Defined in:
lib/m500.rb

Instance Method Summary collapse

Methods included from SGML

#sgml_id, #tog_sgml_id

Methods inherited from NaughtClass

#*, #**, #+, #-, #/, #<=>, #coerce, #div, #is_0?, new!, #next, #succ, #to_Dec, #to_Frac, #to_N, #to_Q, #to_R, #to_Z, #to_f, #to_i

Instance Method Details

#to_sObject



1059
1060
1061
# File 'lib/m500.rb', line 1059

def to_s
  "\u2205".encode('utf-8')
end

#to_s!Object



1056
1057
1058
# File 'lib/m500.rb', line 1056

def to_s!
  "{}"
end

#to_sgmlObject



1053
1054
1055
# File 'lib/m500.rb', line 1053

def to_sgml
  "<mn #{sgml_id}class='empty'>&empty</mn>"
end