Class: Hexp::CssSelector::Universal

Inherits:
Object
  • Object
show all
Defined in:
lib/hexp/css_selector.rb

Overview

Match any element, ‘*’

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.newObject



212
213
214
# File 'lib/hexp/css_selector.rb', line 212

def self.new
  @@instance ||= super
end

Instance Method Details

#matches?(element) ⇒ Boolean

Returns:

  • (Boolean)


216
217
218
# File 'lib/hexp/css_selector.rb', line 216

def matches?(element)
  true
end