Class: Numeric

Inherits:
Object
  • Object
show all
Defined in:
lib/whisper/common.rb

Instance Method Summary collapse

Instance Method Details

#niceniceObject



73
74
75
# File 'lib/whisper/common.rb', line 73

def nicenice
  %w(no one two three four five six)[self] || to_s
end

#pluralize(s) ⇒ Object



69
70
71
# File 'lib/whisper/common.rb', line 69

def pluralize s
  nicenice + " " + (self == 1 ? s : s.plural_form)
end