Class: UState::Query::And
- Inherits:
-
Object
- Object
- UState::Query::And
- Defined in:
- lib/ustate/query/and.rb
Instance Method Summary collapse
- #===(state) ⇒ Object
-
#initialize(a, b) ⇒ And
constructor
A new instance of And.
Constructor Details
#initialize(a, b) ⇒ And
Returns a new instance of And.
3 4 5 6 |
# File 'lib/ustate/query/and.rb', line 3 def initialize(a,b) @a = a @b = b end |
Instance Method Details
#===(state) ⇒ Object
8 9 10 |
# File 'lib/ustate/query/and.rb', line 8 def ===(state) @a === state and @b === state end |