Class: Locator::Boolean::Or

Inherits:
Terms
  • Object
show all
Extended by:
Accessors
Defined in:
lib/locator/boolean.rb

Instance Method Summary collapse

Methods included from Accessors

operator, operator=

Methods inherited from Terms

#and, #and!, #or, #or!, #to_s

Constructor Details

#initialize(lft, rgt) ⇒ Or

Returns a new instance of Or.



45
46
47
# File 'lib/locator/boolean.rb', line 45

def initialize(lft, rgt)
  replace([lft, rgt])
end