Skip to content

Instantly share code, notes, and snippets.

@melborne

melborne/ruby_egg.rb

Created Nov 30, 2012
Embed
What would you like to do?
# encoding: UTF-8
= 1.0/0
(1..).lazy.map {|i| Statue.new(i) }
.select {|statue| statue.of_liberty? }
.take(100).send(:george)
# ~> YouLazzyError: undefined method ‘lazy’ for 1..Infinity:Range
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.