Class: UState::Query::Or

Inherits:
Node
  • Object
show all
Includes:
Narity
Defined in:
lib/ustate/query/or.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/or.rb', line 5

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