class Lazy

Public Class Methods

new() click to toggle source
# File core/lib/lazy.rb, line 23
def initialize
  @proc = Proc.new
  @obj = nil end

Public Instance Methods

irregular_eval_object() click to toggle source
# File core/lib/lazy.rb, line 27
def irregular_eval_object
  if @proc
    @obj = @proc.call
    @proc = nil end
  @obj end