Class: UState::Query::And

Inherits:
Node
  • Object
show all
Includes:
Narity
Defined in:
lib/ustate/query/and.rb

Instance Method Summary collapse

Methods included from Narity

#==, #as, #as=, #children, #children=, #initialize, #inspect, #mass, #to_s

Methods inherited from Node

#indent, #inspect, #inspect_helper, #mass

Instance Method Details

#===(state) ⇒ Object



5
6
7
8
9
# File 'lib/ustate/query/and.rb', line 5

def ===(state)
  as.all? do |a|
    a === state
  end
end