lib/surface_master/interaction.rb in surface_master-0.4.1 vs lib/surface_master/interaction.rb in surface_master-0.5.0
- old
+ new
@@ -74,10 +74,10 @@
end
protected
def expand(list)
- list.map { |ll| ll.respond_to?(:to_a) ? ll.to_a : ll }.flatten
+ Array(list).map { |ll| ll.respond_to?(:to_a) ? ll.to_a : ll }.flatten
end
def guard_input_and_reset_at_end!(&block)
block.call
rescue Portmidi::DeviceError => e