Class: Hx::Path::Negation
Class Method Summary collapse
Instance Method Summary collapse
- #accept_path?(path) ⇒ Boolean
-
#initialize(selector) ⇒ Negation
constructor
A new instance of Negation.
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
152 153 154 |
# File 'lib/hx/path.rb', line 152 def accept_path?(path) not @selector.accept_path?(path) end |