vendor/bundle/ruby/1.8/gems/Ruby-MemCache-0.0.1/tests/mctestcase.rb
def promptForRequiredValue( promptString, default=nil )
		res = nil
		
		if default
			res = promptWithDefault( promptString, default )
		else
			res = prompt( promptString )
		end
		
		if res.nil? || res.empty?
			raise RuntimeError,
				"Cannot test: missing required config value"
		end
		
		return res
	end
### Prompt the user with the given <tt>promptString</tt> via #prompt, or
### #promptWithDefault if a default is given, and return the answer after
### testing to make sure it's been filled. If it has not, a RuntimeError is
### raised.
Prompt the user with the given promptString via #prompt, or
promptWithDefault if a default is given, and return the answer after
testing to make sure it's been filled. If it has not, a RuntimeError is
raised.
Prompt the user with the given promptString via #prompt or promptWithDefault if a default is given and return the answer after testing to make sure it ' s been filled . If it has not a RuntimeError is raised .
def promptForRequiredValue( promptString, default=nil )
		res = nil
		if default
			res = promptWithDefault( promptString, default )
		else
			res = prompt( promptString )
		end
		if res.nil? || res.empty?
			raise RuntimeError,
				"Cannot test: missing required config value"
		end
		return res
	end
def promptForRequiredValue ( promptString , default = nil ) res = nil if default res = promptWithDefault ( promptString , default ) else res = prompt ( promptString ) end if res . nil? || res . empty? raise RuntimeError , "Cannot test: missing required config value" end return res end
Prompt the user with the given <tt>promptString</tt> via #prompt, or
promptWithDefault if a default is given, and return the answer after
testing to make sure it's been filled.
Prompt the user with the given <tt > promptString< / tt > via #prompt or promptWithDefault if a default is given and return the answer after testing to make sure it ' s been filled .
promptString
default