lib/datacaster/switch_node.rb in datacaster-3.1.5 vs lib/datacaster/switch_node.rb in datacaster-3.2.0

- old
+ new

@@ -6,10 +6,9 @@ if Datacaster::Utils.pickable?(@base) @base = Datacaster::Predefined.pick(@base) end if !@base.nil? && !Datacaster.instance?(@base) - puts @base.inspect raise RuntimeError, "provide a Datacaster::Base instance, a hash key, or an array of keys to switch(...) caster", caller end @ons = on_casters @else = else_caster