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



60
61
62
63
64
65
66
67
68
69
70
# File 'lib/xqsr3/quality/parameter_checking.rb', line 60

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