Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/extensions/array_extensions.rb
Instance Method Summary collapse
Instance Method Details
#safe_join(sep = $,) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/extensions/array_extensions.rb', line 5 def safe_join(sep = $,) sep ||= "".html_safe sep = sep.html_safe map { |i| ERB::Util.html_escape(i) }.join(sep).html_safe end |