background preloader

Ruby QuickRef

Ruby QuickRef
Table of Contents Language General Tips These are tips I’ve given over and over and over and over… Use 2 space indent, no tabs. Use [] over See for more. General Syntax Rules Comments start with a pound/sharp (#) character and go to EOL. Reserved Words alias and BEGIN begin break case class def defined? Types Basic types are numbers, strings, ranges, regexen, symbols, arrays, and hashes. Numbers 1231_234123.451.2e-30xffff 0b01011 0377 ? Strings In all of the %() cases below, you may use any matching characters or any single character for delimiters. %[], %!! 'no interpolation'"#{interpolation}, and backslashes\n"%q(no interpolation)%Q(interpolation and backslashes)%(interpolation and backslashes)`echo command interpretation with interpolation and backslashes`%x(echo command interpretation with interpolation and backslashes) Backslashes: Here Docs: Encodings: Waaaay too much to cover here. Symbols Internalized String. 1.8: Symbols may not contain \0 or be empty. Ranges 1..101...10'a'..' Regexen

Related:  Ruby DevelopmentRuby Tuts:

Collaborating with Others cli collaboration Table of Contents Adding collaborators Other developers (identified by email address) can be invited to collaborate on your app: heroku sharing:add Adding to myapp collaborators... done Ruby Quiz - MUD Client (#45) MUD Client (#45) Sy has been searching for a Ruby scriptable MUD client via Ruby Talk and so far, there hasn't been many helpful answers posted. Let's generate some. This week's Ruby Quiz is to create a basic MUD client that must be scriptable in the Ruby programming language. That's pretty vague, so let me see if I can answer the questions I'm sure at least some of you still have. What is a MUD?

Rolling with Ruby on Rails by Curt Hibbs 01/20/2005 Editor's note: Curt Hibbs and Bill Walton have updated this tutorial for Rails 1.2 in Rolling with Ruby on Rails Revisited and Rolling with Ruby on Rails Revisited, Part Two. We recommend those tutorials for all new Rails development. Download Ruby Here you can get the latest Ruby distributions in your favorite flavor. The current stable version is 2.1.1. Please be sure to read Ruby’s License. Ruby Quick Reference Guide Here is a quick reference guide for Ruby developers: What is Ruby ? Ruby is a pure object-oriented programming language.

How To Configure Remote Access To Your Ubuntu Desktop Version 1.0 Author: Falko Timme <ft [at] falkotimme [dot] com> Last edited 01/23/2008 This guide explains how you can enable a remote desktop on an Ubuntu desktop so that you can access and control it remotely. This makes sense for example if you have customers that are not very tech-savvy. If they have a problem, you can log in to their desktops without the need to drive to their location. I will also show how to access the remote Ubuntu desktop from a Windows XP client and an Ubuntu client.

A Quick (and Hopefully Painless) Ride Through Ruby (with Cartoon Foxes) Yeah, these are the two. My asthma’s kickin’ in so I’ve got to go take a puff of medicated air just now. Be with you in a moment. I’m told that this chapter is best accompanied by a rag. Something you can mop your face with as the sweat pours off your face. Indeed, we’ll be racing through the whole language. JRuby 1.5.0 Released: The Best Alternative Ruby Implementation Gets Even Better Following on five months after the release of the popular JRuby 1.4, the JRuby team have delivered JRuby 1.5! Forgetting the de facto "official" Ruby implementations of 1.8.x and 1.9.1/2, JRuby is the fastest and most stable Ruby implementation available and already has 9 years of progress under its belt. JRuby takes a lot of its performance and versatility from running on the Java Virtual Machine (JVM), which has provided JRuby's developers with a solid base from which to optimize how Ruby is implemented.

JavaScript Meets Ruby: John Barnette Explains Johnson Some technologies are so unique and unusual we sometimes question why they exist in the first place. Segway's personal transporter is one example, and Ruby's Johnson library to access JavaScript from Ruby is another. To understand this technology we had an online chat with Johnson's creator and lead developer John Barnette in Seattle.