<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rubikitch</author_name>
  <author_url>https://blog.hatena.ne.jp/rubikitch/</author_url>
  <blog_title>http://rubikitch.com/に移転しました</blog_title>
  <blog_url>https://rubikitch.hatenadiary.org/</blog_url>
  <categories>
    <anon>ruby</anon>
    <anon>update</anon>
  </categories>
  <description>Ruby 1.8.7で使えるようになったRuby 1.9のメソッドたち - http://rubikitch.com/に移転しましたいつのまにかArray#choiceはArray#sampleに改名されていた。Array#choiceは互換性のため1.8.7では残っているが、Ruby 1.9ではなくなっている。 require 'rubygems' require 'expectations' Expectations do # Array#sampleでランダムな要素を得る。 expect 4 do srand 10 [1,2,3,4].sample end expect [4,1] do…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frubikitch.hatenadiary.org%2Fentry%2F20081107%2F1225995198&quot; title=&quot;Ruby 1.8.7での新メソッド更新（Array#choice→Array#sample） - http://rubikitch.com/に移転しました&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-11-07 03:13:18</published>
  <title>Ruby 1.8.7での新メソッド更新（Array#choice→Array#sample）</title>
  <type>rich</type>
  <url>https://rubikitch.hatenadiary.org/entry/20081107/1225995198</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
