Author: published by tianen Beijing Aerospace Publishing House.
Ruby is a language with the word "Ruby ". Rails is a technical framework. Its word is "Rails ". The meaning of "Ruby on Rails" is that it is full of Ruby rails. Rails is a B/S
Ruby is a scripting language for simple and fast object -Oriented programming (object-oriented programming).Simple Introduction
Ruby is open source and available on the web for free, but requires a license .
Ruby is a universal, interpreted
In the Ruby language, the object is the basic unit, and all of the elements can be said to be objects. As previously understood for object-oriented programs, an object is a set of programs that contains a collection of specific properties and
This article mainly introduces the use of circular statements in Ruby Tutorial, logic Loop statement is the basis of each programming language, need friends can refer to the
Loops in Ruby are used to perform the same number of times as the code
Ruby is a scripting language for simple and fast object -Oriented programming (object-oriented programming).Brief introduction
Ruby is open source and is available on the web for free, but requires a license .
Ruby is a universal, interpreted
Loops in Ruby are used to execute the same code block several times. This section details all the looping statements that are supported by Ruby.Ruby While statementGrammar
While conditional [does]
code
end
When conditional is true,
Loops in Ruby are used to perform the same number of times as the code block specifies. This chapter details the looping statements that are supported by Ruby.Ruby While statement:Syntax:
While conditional [do]CodeEnd
Executes code when the
Page 3Overview
Description and execution: Python and Ruby are highly interactive;○ Compilation and execution: Pascal, C, fast.N local execution, such as C, C ++;N virtual machine execution, such as Java, C #. ○ Dynamic languages, such as
Page 3Overview
Description and execution: Python and Ruby are highly interactive;○ Compilation and execution: Pascal, C, fast.N local execution, such as C, C ++;N virtual machine execution, such as Java, C #. ○ Dynamic languages,
1, with java,c# and other languages of the Try...catch...finally...throw, Ruby Begin/end ... rescue...ensure ... raise to handle the exception, retry can be used in rescue. You can use either rescue or ensure, when both are used, rescue must be in
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.