Class: Treequel::Filter::NotComponent
- Defined in:
- lib/treequel/filter.rb
Overview
A filtercomp that negates the filter it contains.
Instance Method Summary collapse
-
#initialize(filter) ⇒ NotComponent
constructor
Create an negation component of the specified
filter. -
#to_s ⇒ Object
Return the stringified filter form of the receiver.
Methods inherited from Component
inherited, #inspect, #promiscuous?
Constructor Details
#initialize(filter) ⇒ NotComponent
Create an negation component of the specified filter.
133 134 135 |
# File 'lib/treequel/filter.rb', line 133 def initialize( filter ) @filter = filter end |
Instance Method Details
#to_s ⇒ Object
Return the stringified filter form of the receiver.
138 139 140 |
# File 'lib/treequel/filter.rb', line 138 def to_s return '!' + @filter.to_s end |