In Files

Parent

Methods

Files

LazyList::MemoPromise

A promise that can be evaluated on demand (if forced), that caches its value.

Public Instance Methods

__value__() click to toggle source

Return the value of this Promise and memoize it for later access.

# File lib/lazylist.rb, line 45
    def __value__
      if defined?(@value)
        @value
      else
        @value = super
      end
    end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.