Sha256: c65ffc08c03bddffc790cf5574e7ce96bb5ebef992a0502abed3846f5de00e91

Contents?: true

Size: 217 Bytes

Versions: 5

Compression:

Stored size: 217 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

5 entries across 5 versions & 1 rubygems

Version Path
ontomde-core-2.0.0 lib/ontomde-core/delayed.rb
ontomde-core-1.0.4 lib/ontomde-core/delayed.rb
ontomde-core-1.0.6 lib/ontomde-core/delayed.rb
ontomde-core-2.0.4 lib/ontomde-core/delayed.rb
ontomde-core-2.0.5 lib/ontomde-core/delayed.rb