?????? ?? ??????? ???

    Ruby?????????????

???????????????????????Ruby???????????????????洢??????????????????????÷??????????????????????ο??б???????




presidents=["John"??"Richard"??"Gerald"??"Ronald"??"George"??"William"];

...

    Ruby???????????????????????

??????Ruby?У???ж????????????????Ruby?е???ж????????????????????????????Ruby?У?????4????????3.14????? ??"Hi"???????????????????е?"????"?????????????new????????????????????????????????"literal 4"??????????????????...

    Ruby????????????????

?????Щ???????????C++??CLOS??????????л?????????????????????????磬???House???????????Building????? Office??Hospital???????Residence?????Apartment???????????????п????????????????????????????????? ?????????...

    Ruby???????????

?????????????У?????????????ó??????????????????????????????????????????????????Щ??????á?Ruby?????????????????????????????

?? Private???????????????????????

?? Protected????????????????????????е???????...

    Ruby???????????????

??????????????????????????Ruby??????????????????????????????????????????????????乲?????????????Ruby?У?????@@??????????????????磬????????????BankAccount??????????????????????????????????????????壶



...

    Ruby?????????????

???????????

????????????? ????????е?????????ж??????????????????????????????????????????????????????????Ruby????????????????????????????????????? ??????Ruby??????????????????????????????????Rectangle?????????...

    JRuby???Java??Ruby????????

??????? ????

Ruby?????????????????????????????????????????????????????????Ruby?????? ????????Ruby on Rails??web??ó?????????С???????棬??????????Java?????????????????????????????????????????????????...

    JRuby????Java??RoR?????

????JRuby??????Ruby??????Java?????(JVM)??????????????????Ruby??????????????????JVM????л?????????? Java????漯?ɡ?Rails??????????Web?????????????????????ò???????????????????????????档??????棬Java???????? ???...

    ??Ruby??Builder????XML???

??????? ???

??????Ruby on Rails???????????Ruby?????????????????????????????Rails????????????????????Ruby????????????????????????г??? ??????????????????????????????????????Ruby???????????Java???????????????...

    Ruby on Rails?????????????

?????????????RoR??????????????????????????????????????????????????????????????????н??????Щ?????????????????????????????????????????????

??MVC???е?V???????(View)??????????????????????????????????????????...

    ???Rails Java???????????Ruby

?????????????Java???????????????????Rails??????£?????Ruby?????????????

    Ruby on Rails???????????

??????Ruby on Rails????д????????????????????Ruby on Rails?????????????????????????Ruby????????????????????????????????Active Record????????????????????????????仰???????????????????????????????????...

    Ruby on Rails????????????

?????????????MVC??Web??ó????У???ó????????????????????MVC?е?C,????????????????????????????MVC?????????????????????????Ч?????????????????ó?????????????RoR???????

RoR??????????????ж?????????(ActionControl...

    Ruby????????????????????????????

??????Ruby?У???ж????????????????Ruby?е???ж????????????????????????????Ruby?У?????4????????3.14????? ??"Hi"???????????????????е?"????"?????????????new????????????????????????????????"literal 4"??????????????????...

    Ruby?????????颟?????????????

??????Ruby????ж??????????????????????????????????Ruby?У???????????????顣???????????????С??????????????? Ruby???????????????????????????С???Python??C??Java???????????????????????????????????????????...

    Ruby???????????

??????????????Ruby??????Ruby????????????????????????????????????ó???????????????????????????ó????????????? ???????????????????????Ruby???????????????????????????????????????????????????е?????????...

    ??????????????PK:Java, C/C++??Ruby

????????????????????????????????????????????????????Ruby, Java, C/C++??д???????????????????????????Sieve of Eratosthenes??????????????????????????????????????

?????????Ruby???????????????????1.5?????????????...

    ???????ruby??????duck type

?????????java??????ζ?????

?????????

?????????????????????????????????????????????????????????

????duck type??

??Programming Ruby?????????壶?????????????????????????????????????У????????????????????????...

    Ruby?????????????????

???????????????????????Ruby???????????????????洢??????????????????????÷??????????????????????ο??б???????




presidents=["John"??"Richard"??"Gerald"??"Ronald"??"George"??"William"];

...

    Ruby?????????????????????????

???????????

?????е??????????У????дRuby?????????????????Ruby???????????????У???????????print??puts???????й?????????????????

??????Щ???????????????????????????????Kernel????С????Kernel????????????Object???С?????...