Sha256: 3d3dee164f9bb9bec11c1b9db2fdd65f3f9aa1a757e34d6ac637d4a007bc72d2
Contents?: true
Size: 322 Bytes
Versions: 9
Compression:
Stored size: 322 Bytes
Contents
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
9 entries across 9 versions & 1 rubygems