![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Ruby
文章平均质量分 75
P_N
JAVA
展开
-
Understanding Ruby Symbols(Ruby标识符的理解)
Posted by kev Fri, 19 Aug 2005 22:11:00 GMTSymbols in ruby are an enigma. We use them, but many don’t really understand them.Ruby的标识符很难讲清楚。我们都用它,但很多人并不真正理解它。So really, what is a symbol?什么是标识符?Simply,原创 2008-08-19 20:46:00 · 1033 阅读 · 0 评论 -
Ruby的数据类型
Ruby Types:String,Number,Symbol,Array,Hash1.StringsString Literals:String含义:One way to create a String is to use single or double quotes inside a Ruby program to create what is called a string literal翻译 2008-08-20 13:18:00 · 1648 阅读 · 0 评论 -
Ruby Blocks & Closures
TopicsBlocksWhat is a block?How does a block look like?How does a block get passed and executed?Proc object& (Ampersand) operatorlambdaWhere do blocks get used?ClosureWhat is a closure?What is a block翻译 2008-08-22 15:37:00 · 1059 阅读 · 0 评论 -
Ruby Meta-Programming(Ruby元编程,SUN官方文档)
Ruby Meta-ProgrammingTopics• What is and Why Meta-programming?• Ruby language characteristics (that make it a great meta-programming language)• Introspection• Object#send• Dynamic typing (Duck typing)翻译 2008-08-26 14:16:00 · 1484 阅读 · 0 评论 -
JRuby Basics(JRuby基础)
翻译自SUN的官方文档Topics主题• What is and what is not JRuby?什么是JRuby?• Why JRuby (over Ruby) & JRuby on Rails (Ruby on Rails)?为什么用JRuby替代Ruby?• Why (J)Ruby (over Java)?为什么用JRuby替代java?• Calling Java from JRuby翻译 2008-09-02 15:49:00 · 853 阅读 · 0 评论 -
Rails Basics(Rails基础)
本文翻译自SUN官方文档 What is and Why Ruby on Rails (RoR)? What Is “Ruby on Rails”?A full-stack MVC web development framework一个MVC的web开发框架Written in RubyRuby编写First released in 2004 by翻译 2008-09-04 11:01:00 · 1058 阅读 · 0 评论 -
Rails的文件结构(Directory structure of a Rails application)
When you ask NetBeans to create a Rails project - internally NetBeans uses the rails helper script -, it creates the entire directory structure for your application. Rails knows where to find things原创 2008-09-04 16:15:00 · 917 阅读 · 0 评论 -
Active Record Basics
翻译自SUN官方文档Topics主题• What is Active Record?什么是Active Record?• ActiveRecord Object CreationActiveRecord对象创建• Find operationFind方法• Dynamic Attribute-based Finders动态地基于属性的Finder• Validation验证• Migration迁翻译 2008-09-09 10:50:00 · 1216 阅读 · 0 评论 -
Ruby的标识符
标识符用于命名变量、类、模块、方法以及作用域(块)等等。在Ruby中,用于命名局部变量、实例变量、类变量、全局变量、常量、方法以及块的标识符有一套固定的规则。下面我们先来认识一下变量以及常量的命名规则。 变量和常量的一般命名规则如下: 以”@”开头的变量是实例变量; 以”@@”开头的变量是类变量; 以小写字母或者下划线”_”开头的变量是局部变量; 以大写字母开头的变量是转载 2008-09-11 15:00:00 · 962 阅读 · 0 评论