vendor/gems/BlueCloth-1.0.0/utils.rb
# Test for the presence of the specified <tt>library</tt>, and output a
# message describing the test using <tt>nicename</tt>. If <tt>nicename</tt>
# is <tt>nil</tt>, the value in <tt>library</tt> is used to build a default.
Test for the presence of the specified library, and output a
message describing the test using nicename. If nicename
is nil, the value in library is used to build a default.
Test for the presence of the specified library and output a message describing the test using nicename . If nicename is nil the value in library is used to build a default .
def testForLibrary( library, nicename=nil )
		nicename ||= library
		message( "Testing for the #{nicename} library..." )
		found = false
		begin
			require library
		rescue LoadError => err
			message "no found (%s)\n" % err.message
		else
			message "found\n"
			found = true
		end
		return found
	end
def testForLibrary ( library , nicename = nil ) nicename ||= library message ( "Testing for the #{nicename} library..." ) found = false begin require library rescue LoadError => err message "no found (%s)\n" % err . message else message "found\n" found = true end return found end
Test for the presence of the specified <tt>library</tt>, and output a
message describing the test using <tt>nicename</tt>.
Test for the presence of the specified <tt > library< / tt > and output a message describing the test using <tt > nicename< / tt > .
library
<not_specific>
nicename
<not_specific>