Method: Irc::Utils.secs_to_string_case
- Defined in:
- lib/rbot/core/utils/utils.rb
.secs_to_string_case(array, var, string, plural) ⇒ Object
Auxiliary method needed by Utils.secs_to_string
170 171 172 173 174 175 176 177 |
# File 'lib/rbot/core/utils/utils.rb', line 170 def Utils.secs_to_string_case(array, var, string, plural) case var when 1 array << "1 #{string}" else array << "#{var} #{plural}" end end |