Sha256: ee82280345493ffe24937033a0eb4722a5541c74fcc0514d1184b18cc29ebf3f

Contents?: true

Size: 215 Bytes

Versions: 9

Compression:

Stored size: 215 Bytes

Contents

# 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

9 entries across 9 versions & 1 rubygems

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