Sha256: 69503381d089813844ec0be559dec6c8baa6e3a3214b414c51137167c92124e1
Contents?: true
Size: 372 Bytes
Versions: 21
Compression:
Stored size: 372 Bytes
Contents
# frozen_string_literal: true class NodeMutation::Helper # It iterates over all actions, and calls the given block with each action. def self.iterate_actions(actions, &block) actions.each do |action| if action.is_a?(NodeMutation::GroupAction) iterate_actions(action.actions, &block) else block.call(action) end end end end
Version data entries
21 entries across 21 versions & 1 rubygems