object 源代码
对象object是经常用于模仿现实世界中我们身边的一些对象。
From: Subject: A Laboratory For Teaching Object-Oriented Thinking Date: Thu, 12 Mar 2009 14:13:50 +0800 MIME-Version: 1.0 Con…
use cookbook; DROP TABLE IF EXISTS blog_posts; CREATE TABLE blog_posts ( id INT(11) NOT NULL AUTO_INCREMENT, title VARCHAR(20…
require 'cookbook_dbconnect' require 'og' class BlogPost property :title, :content, String end class Comment property :autho…
frozen_string = 'Brrrr!' frozen_string.freeze frozen_string.gsub('r', 'a') # => "Baaaa!" frozen_string.gsub!(…