Class: MSFLVisitors::Nodes::And

Inherits:
Iterator show all
Defined in:
lib/msfl_visitors/nodes/and.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) ⇒ And

Returns a new instance of And.



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

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