Sha256: b9e49e3de675fb973c57bafafcf61e85817539f2f28ebe008dc017eda9396406

Contents?: true

Size: 240 Bytes

Versions: 1

Compression:

Stored size: 240 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require_relative "setup"
require "ryo"

point_x = Ryo::BasicObject(x: 0)
point_y = Ryo::BasicObject({y: 0}, point_x)
point = Ryo::BasicObject({}, point_y)
p [point.x, point.y]

##
# [0, 0]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ryo.rb-0.5.6 share/ryo.rb/examples/4.0_basicobject_ryo_basicobject.rb