# Close command display @ echo off # message ECHO now, listing the controller, please not shutdown the DOS file! # Switch to the current path. Put the. BAT file and the. RB file together. set Pa = % Cd % # execute the ruby script Ruby test. rbpause
We know what the self of the top-level domain is?
Puts self # mainputs self. class # object
We know that when a method is called, if no object is accepted, the default value is self, for example:
Def tell_me_who puts selfendtell_me_who #
1. Create a folder Dir. New % 1Dir: mkdir # When the full directory name is not specified, the default value is the working directory.Dir: chdir () change the working directory of the current scriptFileutils. mkdir 'test'File = file. New ("cmd.txt ")
Ror deployment methods are divided into front-end and back-end architectures:
I. Front-end
The frontend is used to process static resources, distribute dynamic requests to the backend, and sometimes provide some additional functions, such as
Gem packaging:
Gem build XXX. Rb
Install GEM:
Gem install XXX. Rb
For example:
Run-> cmd-> go to the folder to be packaged-> gem build install. RbInstal. RbCode
Code
Code highlighting produced by Actipro CodeHighlighter
When I first came into contact with inject, I didn't know much about it. I just saw this article.ArticleRuby-inject, To get a new understanding, the article with a large number of examples to illustrate.1. Let's look at the simplest example of
From: http://hi.baidu.com/waytofall/blog/item/dad928f9d042b65f242df222.html
Introduction to the MVC Architecture in Ruby on Rails
MVC was first proposed by Trygve reenskaug (seemingly a Norwegian, Professor at the University of Oslo,
Ruby Introduction
Ruby was written in and released in 95. It is an object-oriented programming scripting language.ProgramMember. Despite the recent surge in the suppression of Japanese goods, here I would like to cite Mr. Song benhong's insight
Why am I a senior. net
Program Employee, after a month of Ruby on Rails learning, he will think: only after I understand Ruby on Rails, in order to complete many previously developed applications with less time and coding?
You are a senior. Net
How many methods do you have to create a method? Most people may think of the def keyword Ruby.
Code
# Common method
DefTele_you
Puts"I am anleb"
End
# General method def tele_you puts "I am anleb" End Ruby code
#
Class A def self. ask1 puts "the method of Class" End def ask2 puts "the method of instance" endend
# Method of the Instance Object of the class. The method belongs to the new instance object generated by the class.P a. Methods. LengthP a. Class.
I think it's up to me to wait for me to take the DBA test. To be a DBA or to be a programmer it's a questions. In fact, I personally prefer to do this.ProgramDesign, but considering my personality, I feel more appropriate to be a DBA. In the
Today, the original stable mood was touched by some things, and the feeling of deep-buried things being pulled up is always painful, not to mention too much, or concentrate on WritingArticleRight. Let's talk about the keywords in this article and
Linux installation: I used the source code compilation method for installation. The operating system is Red Hat Linux release 7.3 (Valhalla)
Download from the ruby Main SiteSource code, "Get Ruby now!" on the right of the Home Page !! ", Which
Mailfactory is a simple mail package on rubyforge. With this package, we can easily send emails with attachments and HTML formats. However, currently, mailfactory has some problems in Chinese support, A patch is required.
Install mailfactory
After eight days of returning home during the Spring Festival, I spent almost all of my time drinking, drinking, and having fun with my family, friends, and friends. When I returned to Beijing, I gave me some ruby-related news and paid more
Since rails was booming, the Ruby community has grown a lot better than before (younger brother, I also learned Ruby because of rails, various Ruby extension libraries have sprung up. Their features are that their versions are low (rarely 1.0) and
This chapter includes:
· Creating and Manipulating Threads
· Synchronizing Threads
· Summary
He draweth out the thread of his verbosity finer than the staple of his argument.
William Shakespeare, Love's Labours Lost, act 5, scene 1
Threads are
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