This article mainly introduces the concept of the scope of Ruby, the need for friends can refer to the
The range is everywhere: January to December, 0-9 days, 50 to 67 lines, and so forth. Ruby supports scope and allows us to use a range of ways:
Ruby is a powerful object-oriented scripting language that allows you to quickly and easily object-oriented programming. Sometimes it's a little "fuss" to develop small projects using formal object-oriented languages such as Smalltalk, Eiffel, or C +
Modules are methods, classes, and constants that are grouped together. Module two main benefits:
The module provides a namespace and avoids name collisions.
Module to implement a hybrid factory.
The module defines a namespace in which
Iterators are methods that are supported by collections. An object that stores a set of data members is called a collection. In Ruby, arrays and hashes can be called collections.
The iterator returns all the elements of the collection, one after
Literal constructor for Ruby regular expression:
//Try this:
>>//.class=> RegexpPattern matching consists of two parts, a regular expression (regexp), and a string. A regular expression predicts a string that either satisfies the prediction or is
Ruby treats files and I/O operations as Object oriented.
Ruby's I/O system
The IO class handles all input and output streams.
IO class
An IO object represents a readable writable connection to a disk file, keyboard, screen, or device.
These
1) Install Ruby
Download installation package:http://rubyforge.org/frs/?group_id=167, I downloaded the Rubyinstaller-1.8.7-p302.exe
After loading, you can use RUBY-V test whether the installation is successful, such as figure, if a version
In the previous Ruby on Rails development from scratch (Windows) (iii)-Implementation of the jump between pages, we created two pages for the jump migration, this time we write a single form of maintenance of the TIM Delete Check the example.
1.
If you are a student, you should be c,c++ and Java. There will be some VB, or c#/.net. How much you may have developed some Web pages, you know some html,css and JavaScript knowledge. On the whole, it's hard to see how many students have the ability
http://www.aqee.net/why-every-programmer-should-learn-python-or-ruby/If you are a student, you should be c,c++ and Java. There will be some VB, or c#/.net. How much you may have developed some Web pages, you know some html,css and JavaScript
Looking for a lot of online, not all. Toss for a long time, here record:One. Download the window version of ruby193, then next installs to the specified directory (the installation interface will have 3 selection boxes, I have all chosen here, there
1. The microblog model is as follows:2, the creation of Weibo resources, the command is as follows:$ rails Generate scaffold micropost content:text User_id:integer #生成微博资源$ bundle EXEC Rake db:migrate #执行迁移, update the database, use the new data
The founder of Ruby talked about the ruby blocks and closure structure at on. I want to repost on Qiu Haifeng's translation network (0) font size: T | T
This conversation is translated from the third part of the interview with Matz on the artima.com
What is Symbol?
Ruby is a powerful object-oriented scripting language (the ruby version used in this article is 1.8.6). In Ruby, symbol represents a "name", such as a string name and an identifier name. To create a symbol object, add a colon Before
In Rails, a MySQL Partition Table is used to improve the performance. railsmysql
The partition table of MySQL is a simple and effective feature for processing large data tables. Through this feature, applications can efficiently process large data
Ruby-v # view the ruby VERSION ruby-e '''require "watir"; puts Watir: IE: version'' # view the watir VERSION
Rvm list known # list known ruby versions
Rvm install 1.9.3
Rvm use 1.9.3 | rvm use system
Rvm use 1.9.3 -- default
Rvm list # list local
Ruby uses the simple factory mode and factory method mode in the design mode, and the ruby Design Mode
I have read the ruby design pattern before, But I gradually forget it. Now I bought a big talk design pattern, which doesn't look so boring. By
Over the past few days, I 've talked about a lot of things about Ruby. To sum up, I wrote this blog.
At the beginning of this year, I plan to thoroughly experience Ruby on rails. For me, I have not been familiar with "new language" for many years.
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
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.