Method: String#plural

Defined in:
lib/zmb/utils.rb

#plural(amount = 2) ⇒ Object



46
47
48
49
50
51
52
# File 'lib/zmb/utils.rb', line 46

def plural(amount=2)
  if amount == 1 then
    self
  else
    self + 's'
  end
end