Sha256: ab44eba45a300bbbc154e1ee5521d4865cbeae83cb8669741154c0207ec8d13a
Contents?: true
Size: 342 Bytes
Versions: 2
Compression:
Stored size: 342 Bytes
Contents
#!/usr/bin/env ruby require_relative "setup" require "ryo" point_x = Ryo(x: Ryo.lazy { 5 }) point_y = Ryo({y: Ryo.lazy { 10 }}, point_x) point = Ryo({sum: Ryo.lazy { x + y }}, point_y) print "point.x = ", point.x, "\n" print "point.y = ", point.y, "\n" print "point.sum = ", point.sum, "\n" ## # point.x = 5 # point.y = 10 # point.sum = 15
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ryo.rb-0.5.7 | share/examples/ryo.rb/7_ryo_memo.rb |
ryo.rb-0.5.6 | share/ryo.rb/examples/7_ryo_memo.rb |