Sha256: 13f900dea7e5a776ed4d2266716a8fc350335f95c01b155d7da5987435ccb8fb

Contents?: true

Size: 170 Bytes

Versions: 9

Compression:

Stored size: 170 Bytes

Contents

# frozen_string_literal: true

require_relative "setup"
require "ryo"

point = Ryo.from({
  x: {to_i: 0},
  y: {to_i: 10}
})
p [point.x.to_i, point.y.to_i]

##
# [0, 10]

Version data entries

9 entries across 9 versions & 1 rubygems

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