Class: Locator::Boolean::And
- Extended by:
- Accessors
- Defined in:
- lib/locator/boolean.rb
Instance Method Summary collapse
-
#initialize(lft, rgt) ⇒ And
constructor
A new instance of And.
Methods included from Accessors
Methods inherited from Terms
Constructor Details
#initialize(lft, rgt) ⇒ And
Returns a new instance of And.
36 37 38 |
# File 'lib/locator/boolean.rb', line 36 def initialize(lft, rgt) replace(Array(lft).map { |l| Array(rgt).map { |r| "#{l}#{self.class.operator}#{r}" } }) end |