# File lib/extlib/lazy_array.rb, line 153 def reverse! # reverse without kicking if possible if loaded? @array = @array.reverse else @head, @tail = @tail.reverse, @head.reverse proc = @load_with_proc @load_with_proc = lambda do |v| proc.call(v) v.instance_variable_get(:@array).reverse! end end self end