lib/openwfe/expool/yamlexpstorage.rb in openwferu-0.9.5 vs lib/openwfe/expool/yamlexpstorage.rb in openwferu-0.9.6
- old
+ new
@@ -134,10 +134,18 @@
block.call expression
end
end
+ def each (&block)
+ each_object do |flow_expression|
+ block.call(flow_expression.fei, flow_expression)
+ end
+ end
+
+ alias :real_each :each
+
def to_s
s = "\n\n==== #{self.class} ===="
s << "\n"
each_object_path do |path|
@@ -230,9 +238,19 @@
# method
#
def each_of_kind (kind, &block)
#ldebug { "each_of_kind()" }
+
+ process_queue()
+ super
+ end
+
+ #
+ # calls process_queue() before the call the super class each()
+ # method
+ #
+ def each (&block)
process_queue()
super
end