Parent

Namespace

Methods

LazyModule

Public Class Methods

new(&blk) click to toggle source
# File lib/extlib/lazy_module.rb, line 2
def self.new(&blk)
  # passing no-op block overrides &blk
  m = super{ }
  class << m
    include ClassMethods
  end
  m.lazy_evaluated_body = blk
  m
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.