当前位置:网站首页>Ruby tutorial

Ruby tutorial

2022-07-05 00:35:00 Ai_ Yang


Ruby Is an open source object-oriented programming server-side scripting language , stay 20 century 90 In the middle of the s, Matsumoto of Japan (まつもとゆきひろ/Yukihiro Matsumoto) Design and develop . stay Ruby Community , Matsumoto is also known as Matsu (Matz).Ruby Can run on multiple platforms , Such as Windows、MAC OS and UNIX The various versions of .

One 、 ruby grammar

1.  be-all Ruby The file extensions are  .rb

2. ruby notes

     1. Line notes :   Use characters at the beginning of a line ( # )

     2. Block annotation :  Block annotations are hidden from the interpreter =begin   =end Between the lines


Two 、 Compiler related

1. Rakefile Is the use of Ruby The grammatical makefile, Corresponding make The tool is rake. stay Ruby on Rails Inside , Whether it's database initialization , Content initialization , Delete , Or testing , It's all used rake To complete .


原网站

版权声明
本文为[Ai_ Yang]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202141115465791.html