This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Lazy | |
class LazyProc | |
alias __class__ class | |
instance_methods.each { |m| undef_method m unless m =~ /^__/ or m == :object_id } | |
def initialize(&computation) | |
@computation = computation | |
end | |
def inspect |
NewerOlder