Most of Ruby's built-in types are similar to other programming languages. Mainly have strings,integers,floats,arrays and so on. However, only the scripting language,
such as Ruby,perl, and awk provide support for built-in expression types. Shame:
Watir the use of the environment to build
1, Watir Environment Tool installation package:
1) ruby186-26.exe Download address: http://files.rubyforge.vm.bytemark.co.uk/rubyinstaller/2) Watir-1.5.2.gem Download address:
tend to the literal notation of arrays and hashes (unless you need to pass arguments to their constructors).
# bad
arr = array.new
hash = hash.new
# good
arr = []
hash = {}
You always use%w to define an array of strings
Ruby's philosophy is based on a basic element that makes programmers happy. Ruby is very focused on the happiness of programmers and offers a number of different ways to implement it. Its metaprogramming capabilities enable programmers to write code
Ruby language upgrades are still more diligent. But a large number of versions make library compatibility a big problem. Some gems indicate that Ruby is explicitly unsupported by a particular version, while some gems are incompatible with a higher
Opening
Empty is the color, and the color is empty.Empty and empty, in the Ruby language, everything is an object.
Ruby is an object-oriented language (object oriented Language), and the object-oriented concept is much more robust than other
1.RubyInstaller Download window version installation at Rubyinstaller website, address: http://rubyinstaller.org/downloads/ Execute setup, tick add Ruby executables to your PATH, install finish test on cmd ruby-v view Note that there are no spaces
Because the task is heavy, time is tight, there is not much time to study, roughly find some online learning materials, here to do a collation, I hope that the same friends who are ready to learn to helpOnline documentation Classes:Ruby on Rails
Brief introductionSometimes the following error occurs when installing CocoapodsERROR: Error installing cocoapods: activesupport requires Ruby version >= 2.2.2.
1
This means that your ruby environment needs to be updated, and I'll
The reason for the error is that build tools is required when installing XXXXX, but not in the system. The resolution is also given in the error message:1. Go to http://rubyinstaller.org/downloads/to download dev Kit–devkit-tdm-32-4.5.1-20101214-1400
return, break the next use of these keywords involves jumping out of the scope of the problem, and their difference is that different keywords jump out of the scope of the purpose of the different, because there is a block of code will cause some
A summary of the basic operation methods of the Hash structure in Ruby, rubyhash
About hashFirst, let's take a look at the basic ideas of Hash:If the number of objects to be stored is num, we will use len memory units to store them (len> = num). The
Detailed description of the code block and parameter transfer in Ruby, detailed description of ruby code transfer
1. Block DeclarationAfter the function is called, the block declaration is enclosed by {...}, Or do. end encapsulation. {} Is generally
What is the ruby language?
1. IntroductionRuby is written by Yukihiro Matsumoto in Japan. It is a simple and easy-to-learn object-oriented scripting language. Like perl, ruby has rich functions such as text processing and system management, but Ruby
Ruby learning plan-(0) preface, ruby Preface
Preface
Currently, C, C ++, Java, Object-C, and Swift programming languages have been used. The most familiar language is oc. After all, it depends on him for dinner. It is only a beginner's path
Notes for Ruby on Rails migration: rubyonrails migration
Save schema. rb under version control.Use rake db: scheme: load to replace rake db: migrate to initialize an empty database.Use rake db: test: prepare to update the schema of the test database.
Explain how to use mailer in Ruby on Rails, railsmailer
Name mails SomethingMailer. Without the Mailer root, you cannot immediately see which is a Mailer and which view is related to it.Provides HTML and plain text view templates.
An error occurred
Introduction to file operations in Ruby and file operations in ruby
Ruby provides a complete set of I/O-related kernel modules. All I/O methods come from IO classes.
Class IO provides all the basic methods, such as read, write, gets, puts, readline,
GitHub advocates a summary of Ruby coding styles, while github advocates ruby code.
Source code layout: 1. All source files are UTF-8 encoded2. indent with two spaces3. Use Unix-style line breaks (\ n) and windows (\ r \ n ). You can use git config -
Object array sorting in Ruby and Ruby object array sorting
Sorting of Ruby object arrays
The author has just come into contact with Ruby, because he previously thought that the script language syntax is not standardized and he is somewhat biased
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.