ITeye博客

ruby

共 1 篇文章

ruby学习笔记

学习问题: ruby多个文件相互引入 ruby field使用 108页书籍 源代码: class Prac private def get print "hello print" end private def initialize puts "init" end end class Sonprac < Prac def sayson puts "sayson" end def get super puts "supers prac!!" end def setRate(rate) @rate=rate end def getRate() return @rate end end prac…

2014-03-17 15:01 · ruby