module StalkClimber::LazyEnumerable
Public Class Methods
make_lazy(*methods)
click to toggle source
Convert Enumerable public methods to their lazy counterparts
# File lib/stalk_climber/lazy_enumerable.rb, line 6 def self.make_lazy(*methods) methods.each do |method| define_method method do |*args, &block| lazy.public_send(method, *args, &block) end end end