Sha256: 485126e957517402f5343ac7a0f1b5adf5711ea27bc986eaf1dbd989d99830a6

Contents?: true

Size: 183 Bytes

Versions: 9

Compression:

Stored size: 183 Bytes

Contents

# frozen_string_literal: true

require_relative "setup"
require "ryo"

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

##
# [5, 10]

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ryo.rb-0.5.5 share/ryo.rb/examples/1.0_prototypes_point_object.rb
ryo.rb-0.5.3 share/ryo.rb/examples/1.0_prototypes_point_object.rb
ryo.rb-0.5.2 share/ryo.rb/examples/1.0_prototypes_point_object.rb
ryo.rb-0.5.1 share/ryo.rb/examples/1.0_prototypes_point_object.rb
ryo.rb-0.5.0 share/ryo.rb/examples/1.0_prototypes_point_object.rb
ryo.rb-0.4.7 share/ryo.rb/examples/1.0_prototypes_point_object.rb
ryo.rb-0.4.6 share/ryo.rb/examples/1.0_prototypes_point_object.rb
ryo.rb-0.4.5 share/ryo.rb/examples/1.0_prototypes_point_object.rb
ryo.rb-0.4.4 share/ryo.rb/examples/1.0_prototypes_point_object.rb