Class: Fixnum

Inherits:
Object
  • Object
show all
Defined in:
lib/annlat/LaRuby.rb,
lib/annlat/Sundries.rb

Instance Method Summary collapse

Instance Method Details

#prettifyObject



8
9
10
# File 'lib/annlat/Sundries.rb', line 8

def prettify
  self
end

#to_ltxObject Also known as: l



188
189
190
# File 'lib/annlat/LaRuby.rb', line 188

def to_ltx
  (self >= 0) ? Atom.new(self) : -(Atom.new(-self))
end