lib/engine2/action_node.rb in engine2-1.0.8 vs lib/engine2/action_node.rb in engine2-1.0.9

- old
+ new

@@ -1,10 +1,9 @@ # coding: utf-8 # frozen_string_literal: true module Engine2 - class ActionNode < BasicObject ACCESS_FORBIDDEN ||= ->h{false} attr_reader :parent, :name, :number, :nodes, :recheck_access attr_reader :meta_proc, :access_block @@ -199,25 +198,24 @@ meta.freeze_action panels += 1 if node.*.is_a? ActionPanelSupport true end - ::Kernel::puts "ACTION NODES: #{ActionNode.count}, Panels: #{panels}, Time: #{::Time.now - time}, Thefts: #{thefts}" + ::Kernel::puts "ACTION NODES: #{ActionNode.count}, Panels: #{panels}, Thefts: #{thefts}, Time: #{::Time.now - time}" end def p *args ::Kernel::p *args end end - class ActionNodeBundle def initialize node, node_names @node = node @node_names = node_names end def method_missing name, *args, &blk @node_names.each{|an| @node[an].__send__(name, *args, &blk)} end end -end \ No newline at end of file +end