Module: EfficientJoin
- Extended by:
- EfficientJoinCExt
- Defined in:
- lib/efficient_join.rb,
lib/efficient_join/version.rb
Defined Under Namespace
Classes: Error
Constant Summary collapse
- VERSION =
"2.1.4"
Class Method Summary collapse
- .join(array, header: '', footer: '', separator: ',', item_prefix: '', item_suffix: '') ⇒ Object
- .join_pg_array(array) ⇒ Object
Methods included from EfficientJoinCExt
Class Method Details
.join(array, header: '', footer: '', separator: ',', item_prefix: '', item_suffix: '') ⇒ Object
10 11 12 |
# File 'lib/efficient_join.rb', line 10 def join(array, header: '', footer: '', separator: ',', item_prefix: '', item_suffix: '') _join(header, , item_prefix, item_suffix, separator, array) end |
.join_pg_array(array) ⇒ Object
14 15 16 |
# File 'lib/efficient_join.rb', line 14 def join_pg_array(array) _join('{', '}', '', '', ',', array) end |