Class: MSFLVisitors::Nodes::Or

Inherits:
Iterator show all
Defined in:
lib/msfl_visitors/nodes/or.rb

Instance Attribute Summary

Attributes inherited from Iterator

#set

Instance Method Summary collapse

Methods inherited from Iterator

#==

Methods inherited from Base

#accept

Constructor Details

#initialize(set) ⇒ Or

Returns a new instance of Or.



7
8
9
10
11
12
# File 'lib/msfl_visitors/nodes/or.rb', line 7

def initialize(set)
  super
  unless valid_set_children?
    fail ArgumentError, "Members of child Set node of Or node must be expressions, not values, only containment Set nodes have values as children."
  end
end