Class: UState::Query::Or
- Inherits:
-
Object
- Object
- UState::Query::Or
- Defined in:
- lib/ustate/query/or.rb
Instance Method Summary collapse
- #===(state) ⇒ Object
-
#initialize(a, b) ⇒ Or
constructor
A new instance of Or.
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 |