class CssCompare::CSS::Value::Url

Wraps the SassScript ‘url` Funcall.

Public Instance Methods

==(other) click to toggle source

Checks, whether two url calls are equal.

@param [Url] other the other url call @return [Boolean]

Calls superclass method CssCompare::CSS::Value::Base#==
# File lib/css_compare/css/value/url.rb, line 11
def ==(other)
  return false unless super
  value1 = sanitize_url(@value.args[0].value.value)
  value2 = sanitize_url(other.value.args[0].value.value)
  value1 == value2
end