lib/testable/page.rb
# A call to `url_match_attribute` returns what the value of the
# `url_matches` attribute is for the given interface. It's important
# to note that the URL matching mechanism is effectively a regular
# expression check.
A call to `url_match_attribute` returns what the value of the
`url_matches` attribute is for the given interface. It's important
to note that the URL matching mechanism is effectively a regular
expression check.
A call to ` url_match_attribute ` returns what the value of the ` url_matches ` attribute is for the given interface . It ' s important to note that the URL matching mechanism is effectively a regular expression check .
def url_match_attribute
      value = self.class.url_match_attribute
      return if value.nil?
      value = Regexp.new(value) unless value.is_a?(Regexp)
      value
    end
def url_match_attribute value = self . class . url_match_attribute return if value . nil? value = Regexp . new ( value ) unless value . is_a? ( Regexp ) value end
A call to `url_match_attribute` returns what the value of the
`url_matches` attribute is for the given interface.
A call to ` url_match_attribute ` returns what the value of the ` url_matches ` attribute is for the given interface .