Class: UState::Query::Or

Inherits:
Object
  • Object
show all
Defined in:
lib/ustate/query/or.rb

Instance Method Summary collapse

Constructor Details

#initialize(a, b) ⇒ Or

Returns a new instance of Or.



3
4
5
6
# File 'lib/ustate/query/or.rb', line 3

def initialize(a,b)
  @a = a
  @b = b
end

Instance Method Details

#===(state) ⇒ Object



8
9
10
# File 'lib/ustate/query/or.rb', line 8

def ===(state)
  @a === state or @b === state
end