Class: CSS::Native::Snapshot

Inherits:
Object
  • Object
show all
Defined in:
lib/css/native.rb

Instance Method Summary collapse

Instance Method Details

#_native_match_indicesObject



22
# File 'lib/css/native.rb', line 22

alias_method :_native_match_indices, :match_indices

#_native_matches?Object



20
# File 'lib/css/native.rb', line 20

alias_method :_native_matches?,      :matches?

#_native_matches_any?Object



21
# File 'lib/css/native.rb', line 21

alias_method :_native_matches_any?,  :matches_any?

#match_indices(element, selectors, state = nil) ⇒ Object



32
33
34
# File 'lib/css/native.rb', line 32

def match_indices(element, selectors, state = nil)
  _native_match_indices(element, selectors, state)
end

#matches?(element, selector, state = nil) ⇒ Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/css/native.rb', line 24

def matches?(element, selector, state = nil)
  _native_matches?(element, selector, state)
end

#matches_any?(element, selectors, state = nil) ⇒ Boolean

Returns:

  • (Boolean)


28
29
30
# File 'lib/css/native.rb', line 28

def matches_any?(element, selectors, state = nil)
  _native_matches_any?(element, selectors, state)
end