Sha256: 77868f6270cfa79d5534f4006d331b6ee9a4a89f1ae31514d72f73cef739469c
Contents?: true
Size: 201 Bytes
Versions: 2
Compression:
Stored size: 201 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require_relative "setup" require "ryo" point = Ryo::BasicObject.from({ x: {to_i: 2}, y: {to_i: 4} }) p [point.x.to_i, point.y.to_i] ## # [2, 4]
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ryo.rb-0.5.7 | share/examples/ryo.rb/4.1_basicobject_ryo_basicobject_from.rb |
ryo.rb-0.5.6 | share/ryo.rb/examples/4.1_basicobject_ryo_basicobject_from.rb |