#!/usr/local/bin/ruby class C def set_i(value) @i = value end def get_i() return @i end end c = C.new() c.set_i("ok") p(c.get_i()) # "ok"を表示する