Sha256: 7630ae1b6c2e34a94dba65bd88579f353225c3a141e34ec6cbf75b6a602e0b3d

Contents?: true

Size: 235 Bytes

Versions: 1

Compression:

Stored size: 235 Bytes

Contents

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

require_relative "setup"
require "ryo"

points = Ryo.from([
  {x: {to_i: 2}},
  "foobar",
  {y: {to_i: 4}}
])

p points[0].x.to_i
p points[1]
p points[2].y.to_i

##
# 2
# "foobar"
# 4

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ryo.rb-0.5.6 share/ryo.rb/examples/3.1_recursion_ryo_from_with_array.rb