Ruby
文章平均质量分 76
squeue2019
邮箱:sunkun201309 at 163.com
展开
-
ruby安装顺序简单讲解
ruby安装顺序简单讲解 上述软件,安装环境皆为windows 64位下,适合像我一样懒得装Linux的同学。以下为安装顺序以及需要安装的软件原创 2015-10-06 19:59:20 · 2617 阅读 · 0 评论 -
Arrays, Hashes, and Enumerables(homework for 01)
Arrays, Hashes, and Enumerables Check the Ruby 2.x documentation on Array, Hash and Enumerable as they could help tremendously with these exercises. Define a method sum(array) that takes an array of integers as an argument and returns the sum of its e原创 2015-10-06 20:08:52 · 888 阅读 · 0 评论 -
Object Oriented Basics(homework for 03)
Object Oriented Basics Define a class BookInStock which represents a book with an ISBN number, isbn, and price of the book as a floating-point number, price, as attributes. The constructor should accept the ISBN number (a string, since in real life ISBN原创 2015-10-06 20:25:12 · 1428 阅读 · 0 评论 -
Strings and Regular Expressions(homework for 02)
Strings and Regular Expressions Check the documentation on String and Regexp as they could help tremendously with these exercises. Define a method hello(name) that takes a string representing a name and returns the string "Hello, " concatenated with t原创 2015-10-06 20:20:20 · 1832 阅读 · 0 评论