Module: Xqsr3::Quality::ParameterChecking::Util_
- Defined in:
- lib/xqsr3/quality/parameter_checking.rb
Overview
:nodoc:
Class Method Summary collapse
Class Method Details
.join_with_or(a) ⇒ Object
63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/xqsr3/quality/parameter_checking.rb', line 63 def self.join_with_or a case a.size when 1 a[0] when 2 "#{a[0]} or #{a[1]}" else "#{a[0...-1].join(', ')}, or #{a[-1]}" end end |