Module: PVN::ArrayUtil
- Defined in:
- lib/pvn/util/array.rb
Overview
a bad name, but I’m not sure if I’m going to monkey patch Array
Constant Summary collapse
- POS_NEG_NUMERIC_RE =
Regexp.new('^[\-\+]?\d+$')
Class Method Summary collapse
-
.quote_list(args) ⇒ Object
Returns the list joined by spaces, with each element in the list in double quotes.
Class Method Details
.quote_list(args) ⇒ Object
Returns the list joined by spaces, with each element in the list in double quotes.
11 12 13 |
# File 'lib/pvn/util/array.rb', line 11 def self.quote_list args args.collect { |a| "\"#{a}\"" }.join(' ') end |