FrogApps 技術ブログ始めました!
RailsやiOS、HTML5の情報を発信中!! → http://qiita.com/teams/frogapps
Ruby 1.8ならruby -Ku nihongo.rbで実行。
# !/usr/bin/env ruby
# encoding: utf-8
def 表示(値)
  puts 値
end
class Object
  def です。
    self
  end
  def です
    self
  end
end
class String
  def は(値)
   self.replace 値
  end
end
class C名前 < String
  def self.作成(値)
    self.new 値
  end
  def initialize(値)
    self.replace 値
  end
end
私 = C名前.作成('名無し')
表示 私
私.は '増井'.です
表示 私