class NaughtClass

Public Class Methods

new() click to toggle source
# File lib/m500.rb, line 1047
def initialize
end
new!() click to toggle source
# File lib/m500.rb, line 1043
def NaughtClass.new!
  new
end

Public Instance Methods

*(a) click to toggle source
# File lib/m500.rb, line 1066
def * (a)
  return self
end
**(a) click to toggle source
# File lib/m500.rb, line 1072
def ** (a)
  1
end
+(a) click to toggle source
# File lib/m500.rb, line 1060
def + (a)
  return a
end
-(a) click to toggle source
# File lib/m500.rb, line 1063
def - (a)
  return a*(-1)
end
/(a) click to toggle source
# File lib/m500.rb, line 1069
def / (a)
  nan
end
<=>(other) click to toggle source
# File lib/m500.rb, line 1108
def <=>(other)
  0 <=> other.to_i
end
coerce(other) click to toggle source
# File lib/m500.rb, line 1111
def coerce(other)
  [other,0]
end
div(a) click to toggle source
# File lib/m500.rb, line 1054
def div(a) 
  0
end
is_0?() click to toggle source
# File lib/m500.rb, line 1057
def is_0?
  true
end
next() click to toggle source
# File lib/m500.rb, line 1102
def next
  1
end
succ() click to toggle source
# File lib/m500.rb, line 1105
def succ
  1
end
to_Dec() click to toggle source
# File lib/m500.rb, line 1096
def to_Dec
  "0.0".to_Dec
end
to_Frac() click to toggle source
# File lib/m500.rb, line 1090
def to_Frac
  "0 0/1".to_Frac
end
to_N() click to toggle source
# File lib/m500.rb, line 1084
def to_N
  emptySet
end
to_Q() click to toggle source
# File lib/m500.rb, line 1093
def to_Q
  Quotient(0,1)
end
to_R() click to toggle source
# File lib/m500.rb, line 1099
def to_R
  emptySet
end
to_Z() click to toggle source
# File lib/m500.rb, line 1087
def to_Z
  Zahlen(0)
end
to_f() click to toggle source
# File lib/m500.rb, line 1078
def to_f
  0.0
end
to_i() click to toggle source
# File lib/m500.rb, line 1075
def to_i
  0
end
to_s() click to toggle source
# File lib/m500.rb, line 1081
def to_s
  "naught"
end
to_sgml() click to toggle source
# File lib/m500.rb, line 1051
def to_sgml
  "<mn #{sgml_id}class='naught'>0</mn>"
end