Class: Hx::Path::Negation

Inherits:
Object
  • Object
show all
Includes:
Selector
Defined in:
lib/hx/path.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Selector

#&, #assume_circumfix, #elide_circumfix, #literal?, #|, #~

Constructor Details

#initialize(selector) ⇒ Negation

Returns a new instance of Negation.



148
149
150
# File 'lib/hx/path.rb', line 148

def initialize(selector)
  @selector = selector
end

Class Method Details

.build(selector) ⇒ Object



144
145
146
# File 'lib/hx/path.rb', line 144

def self.build(selector)
  new(selector)
end

Instance Method Details

#accept_path?(path) ⇒ Boolean

Returns:

  • (Boolean)


152
153
154
# File 'lib/hx/path.rb', line 152

def accept_path?(path)
  not @selector.accept_path?(path)
end