Method: Fortune::P#to_percent_string

Defined in:
lib/fortune/p.rb

#to_percent_stringObject



36
37
38
# File 'lib/fortune/p.rb', line 36

def to_percent_string
  '%5.2f' % [self.to_percent] + '%'
end