lib/garcon/chef/validations.rb
# Boolean, true if source is an absolute URI, false otherwise.
#
# @param [String] source
#
# @return [Boolean]
#
Boolean, true if source is an absolute URI, false otherwise.
Boolean true if source is an absolute URI false otherwise .
def absolute_uri?(source)
          source =~ URI::ABS_URI && URI.parse(source).absolute?
        rescue URI::InvalidURIError
          false
        end
def absolute_uri? ( source ) source =~ URI :: ABS_URI && URI . parse ( source ) . absolute? rescue URI :: InvalidURIError false end
Boolean, true if source is an absolute URI, false otherwise.
Boolean true if source is an absolute URI false otherwise .
None
Boolean
source
<not_specific>
<not_specific>
None