Sha256: e05210901cc81f6890a2ed5e3868d6b65aa26d149895609d8eba3d0e42624f20

Contents?: true

Size: 212 Bytes

Versions: 1

Compression:

Stored size: 212 Bytes

Contents

class Delayed2 
	def initialize(&b)
		@b=b
	end	
	def to_s
		return @b.call 
	end
end

#Example usage:
#i=45
#c=mtk_delay { i + 5 }
#i=35
#puts  c.to_s
def mtk_delay (&block) 
	return Delayed2.new(&block)
end



Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ontomde-core-1.0.2 lib/ontomde-core/delayed.rb