Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/share_with/utils.rb
Overview
Monkey patching of the Array class.
Instance Method Summary collapse
Instance Method Details
#to_text_list(separator = ",") ⇒ Object
28 29 30 31 32 |
# File 'lib/share_with/utils.rb', line 28 def to_text_list(separator = ",") map do |x| x.to_s.to_plain_text.gsub(/[^a-z]/, "") end.join(separator) end |