Sha256: 231cc3c05e3984f4b0a8040514d29499827db2b6b11ab359a673337006feed31
Contents?: true
Size: 232 Bytes
Versions: 1
Compression:
Stored size: 232 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require_relative "setup" require "ryo" require "ostruct" point = Ryo.from( OpenStruct.new(x: {to_i: 5}), Ryo.from(y: {to_i: 10}) ) p [point.x.to_i, point.y.to_i] ## # [5, 10]
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ryo.rb-0.5.6 | share/ryo.rb/examples/3.2_recursion_ryo_from_with_openstruct.rb |