<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pebble8888</author_name>
  <author_url>https://blog.hatena.ne.jp/pebble8888/</author_url>
  <blog_title>Pebble Coding</blog_title>
  <blog_url>https://pebble8888.hatenablog.com/</blog_url>
  <categories>
    <anon>rails/ruby</anon>
  </categories>
  <description>Moduleの使い方。 ディレクトリにMyMathModule.rbとMyApp.rbの２つのファイルを作成してみる。 # MyMathModule.rb module MyMathModule def plus(x, y) x + y end end # MyApp.rb require &quot;./MyMathModule&quot; class MyApp include MyMathModule end myapp = MyApp.new p myapp.plus(1,2) シェルから次のコマンドを実行してみる。 $ ruby MyApp.rb 3 これがrubyのmoduleの一般的な使い方である。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpebble8888.hatenablog.com%2Fentry%2F2015%2F04%2F09%2F001455&quot; title=&quot;ruby文法その２ - Pebble Coding&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>2015-04-09 00:14:55</published>
  <title>ruby文法その２</title>
  <type>rich</type>
  <url>https://pebble8888.hatenablog.com/entry/2015/04/09/001455</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
