vendor/bundle/ruby/1.8/gems/Ruby-MemCache-0.0.1/utils.rb
def testForRequiredLibrary( library, nicename=nil, raaUrl=nil, downloadUrl=nil, fatal=true )
		nicename ||= library
		unless testForLibrary( library, nicename )
			msgs = [ "You are missing the required #{nicename} library.\n" ]
			msgs << "RAA: #{raaUrl}\n" if raaUrl
			msgs << "Download: #{downloadUrl}\n" if downloadUrl
			if fatal
				abort msgs.join('')
			else
				errorMessage msgs.join('')
			end
		end
		return true
	end
# Test for the presence of the specified <tt>library</tt>, and output a
# message describing the problem using <tt>nicename</tt>. If
# <tt>nicename</tt> is <tt>nil</tt>, the value in <tt>library</tt> is used
# to build a default. If <tt>raaUrl</tt> and/or <tt>downloadUrl</tt> are
# specified, they are also use to build a message describing how to find the
# required library. If <tt>fatal</tt> is <tt>true</tt>, a missing library
# will cause the program to abort.
Test for the presence of the specified library, and output a
message describing the problem using nicename. If
nicename is nil, the value in library is used
to build a default. If raaUrl and/or downloadUrl are
specified, they are also use to build a message describing how to find the
required library. If fatal is true, a missing library
will cause the program to abort.
Test for the presence of the specified library and output a message describing the problem using nicename . If nicename is nil the value in library is used to build a default . If raaUrl and / or downloadUrl are specified they are also use to build a message describing how to find the required library . If fatal is true a missing library will cause the program to abort .
def testForRequiredLibrary( library, nicename=nil, raaUrl=nil, downloadUrl=nil, fatal=true )
		nicename ||= library
		unless testForLibrary( library, nicename )
			msgs = [ "You are missing the required #{nicename} library.\n" ]
			msgs << "RAA: #{raaUrl}\n" if raaUrl
			msgs << "Download: #{downloadUrl}\n" if downloadUrl
			if fatal
				abort msgs.join('')
			else
				errorMessage msgs.join('')
			end
		end
		return true
	end
def testForRequiredLibrary ( library , nicename = nil , raaUrl = nil , downloadUrl = nil , fatal = true ) nicename ||= library unless testForLibrary ( library , nicename ) msgs = [ "You are missing the required #{nicename} library.\n" ] msgs << "RAA: #{raaUrl}\n" if raaUrl msgs << "Download: #{downloadUrl}\n" if downloadUrl if fatal abort msgs . join ( '' ) else errorMessage msgs . join ( '' ) end end return true end
Test for the presence of the specified <tt>library</tt>, and output a
message describing the problem using <tt>nicename</tt>.
Test for the presence of the specified <tt > library< / tt > and output a message describing the problem using <tt > nicename< / tt > .
library
nicename
raaUrl
downloadUrl
fatal