Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/_utils.rb
Instance Method Summary collapse
Instance Method Details
#listify ⇒ Object
15 16 17 |
# File 'lib/_utils.rb', line 15 def listify length < 2 ? first.to_s : "#{self[0..-2] * ', '} and #{last}" end |