<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>redhatping</title>
    <link>https://ruby-china.org/redhatping</link>
    <description/>
    <language>en-us</language>
    <item>
      <title>请问一下无论是任何程序语言，为什么都是 循环，条件这些呢？</title>
      <description>&lt;p&gt;这一些为什么足以支撑这个计算机逻辑呢？求惑 &lt;/p&gt;</description>
      <author>redhatping</author>
      <pubDate>Thu, 24 Oct 2013 18:28:07 +0800</pubDate>
      <link>https://ruby-china.org/topics/15006</link>
      <guid>https://ruby-china.org/topics/15006</guid>
    </item>
    <item>
      <title>如何调用类方法？？？？</title>
      <description>&lt;p&gt;class Square&lt;/p&gt;

&lt;p&gt;def  test_method
         puts "hello lixiang"
    end &lt;/p&gt;

&lt;p&gt;def self.test_method
        puts "hello xuqun"
    end
end
        li=Square.new
      li.test_method&lt;/p&gt;

&lt;p&gt;li 如何调用 self.test_method 类方法，li.self.test_method 错误，li.new.test_method 错误，请教一下大家？？&lt;/p&gt;</description>
      <author>redhatping</author>
      <pubDate>Sun, 14 Jul 2013 21:43:27 +0800</pubDate>
      <link>https://ruby-china.org/topics/12501</link>
      <guid>https://ruby-china.org/topics/12501</guid>
    </item>
    <item>
      <title>简单的程序错误,找不到</title>
      <description>&lt;p&gt;Class Square
  def initialize(side_length)
    &lt;a href="/side_length" class="user-mention" title="@side_length"&gt;&lt;i&gt;@&lt;/i&gt;side_length&lt;/a&gt; = side_length
  end&lt;/p&gt;

&lt;p&gt;def area
    &lt;a href="/side_length" class="user-mention" title="@side_length"&gt;&lt;i&gt;@&lt;/i&gt;side_length&lt;/a&gt; * &lt;a href="/side_length" class="user-mention" title="@side_length"&gt;&lt;i&gt;@&lt;/i&gt;side_length&lt;/a&gt;
  end
end&lt;/p&gt;

&lt;p&gt;a = Square.new(10)
puts a.area &lt;/p&gt;

&lt;p&gt;显示
D:/2013/RUBY/class/2.rb:10: syntax error, unexpected kEND, expecting $end
[Finished]&lt;/p&gt;

&lt;p&gt;什么原因呢？&lt;/p&gt;</description>
      <author>redhatping</author>
      <pubDate>Sat, 13 Jul 2013 14:27:30 +0800</pubDate>
      <link>https://ruby-china.org/topics/12476</link>
      <guid>https://ruby-china.org/topics/12476</guid>
    </item>
  </channel>
</rss>
