Skip to content

Instantly share code, notes, and snippets.

@axtl
Created May 16, 2016 21:21
Show Gist options
  • Save axtl/a184b1135d1830a9aab5e41df07d2553 to your computer and use it in GitHub Desktop.
Save axtl/a184b1135d1830a9aab5e41df07d2553 to your computer and use it in GitHub Desktop.
single line rubocop crasher
require 'ipaddr'
net_end = IPAddr.new '192.168.50.201'
(1..5).reduce { net_end = net_end.succ }
print net_end.to_s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment