Some important differences between Ruby and C # are as follows:
1. Ruby is a dynamic language, and C # Is a static language-that is, after an object is new, Ruby can dynamically add some attributes or methods to the object instance (as does
Ruby has two types of data: integer and string. Ruby is fully oo.
Programming LanguageDifferent from C ++, its integers and strings are also class types. There are two types of integer. When the integer value ranges from-2 ^ 30 to 2 ^ 30-1 (or-2 ^ 6
Ruby is a powerful object-oriented scripting language that allows you to easily and quickly perform object-oriented programming. sometimes using formal object-oriented languages such as Smalltalk, Eiffel, and C ++ to develop small projects seems a
I won't go into any further discussions about symbol. I just want to talk about the advantages of it.
Each object in ruby is identified and distinguished by a digital ID. You can use XXX. object_id to view the ID.
Puts "0001". object_idputs "0001
Rails calls the Java method XML sit-ups ).
Rails is a complete, open-source web development framework with more happiness and lessCode.
The entire framework runs through the dry (do not repeat) principle. For example, after a database table is
Private
Private functions can only be called in the context of the class and subclass, and can only be accessed through self.
This means that the private function can only be accessed within the object.
The access permission of the object
First, let us know whether the materials are the same as the version of the environment in rails. The information is rails3.2, and the computer configuration environment is 4.0. This security precaution problem occurs. Most of these problems occur
The supplemental version of ruby-based watir automated test Note 1 adds some special control capture methods. Updating ....
Attribute_value
Obtains the properties of the current control.
Value = ie. Link (: Id => 'xxx'). attribute_value ("href ")
In Ruby, callback and hook methods are called when a specific event occurs. There are several types of events:
Call a method that does not exist.
Class mixing includes a module
Define subclass of A Class
Add an instance method to the class
Add
Recently I have studied SVN using the HTTP protocol, but most of them are using Apache to integrate SVN on the Internet. I don't want to use Apache + SVN. I finally found many pages on Google, but it is required to install Ruby on Rails first, so we
Unlike Java, super in Ruby replaces not the parent class, but the method with the same name as the current method in the parent class. In Ruby, super is used flexibly. When super is used, without any parameters (and no parentheses), the actual
Ror Official Website:Http://www.rubyonrails.org/It can be used as a starting point for understanding this technology. There is a video worth watching to build a blog within 15 minutes.
Rolling with Ruby on Rails:Http://www.onlamp.com/pub/a/onlamp/200
BKJIA Translation: Nginx has become the third largest Web server in the world. Among the top 10 Web servers used by domestic websites, Nginx is also among the top. Ruby on Rails is a new generation of Web development languages that have become
This program depends on the Ruby runtime environment. Currently, it is only tested in windows.Note:
1. Open 'setting.txt 'before running to set the path for saving the image. The first line of the file is the starting line (if 50 is used, the
Ruby is not very popular, so it is difficult to draw conclusions at present. However, from the perspective of recruitment, there are still a few companies using Ruby. From the perspective of salary, Ruby is quite high compared with others, the main
Rubinius 2.0 is released. For official release notes, see here.
Rubinius is a virtual machine that runs Ruby programs. It carries the Ruby core library.
Rubinius's design determines its powerful debugging function, allowing regular Ruby Cores
An asynchronous file download HttpServer instance implemented by ruby,
1. Use ruby eventmachine and em-http-server gem to complete a simple HttpServer that provides the file download function.
2. The FileStreamer of EM is used to send files
1. whenever
First, whenever is based on the linux cron service. Therefore, there is no direct way to use the gem on the windows platform. Whenever should be regarded as a cron translator, which translates ruby code into a cron script, so that
As ruby is a pure object-oriented language, everything is an object. methods are objects and classes are objects ..., therefore, self has many environments. Only by distinguishing the meanings of self in different environments can we better
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service