class Pathname::String::Fixnum

Public Instance Methods

numeric?() click to toggle source
# File lib/extensions.rb, line 146
def numeric?() true end
s(p=0,ch='0') click to toggle source
# File lib/extensions.rb, line 147
def s(p=0,ch='0')
  return ch if self == 0 && !ch.nil?
  p > 0 ? ("%.#{p}f" % self) : self.to_s
end