class Tzispa::Annotations::Builtin::Lazy::Proxy

Public Class Methods

new(&block) click to toggle source
# File lib/tzispa/annotations/builtin/lazy.rb, line 8
def initialize(&block)
  @block = block
end

Public Instance Methods

method_missing(name, *args, &block) click to toggle source
# File lib/tzispa/annotations/builtin/lazy.rb, line 12
def method_missing(name, *args, &block)
  @result ||= @block.call
  @result.send name, *args, &block
end