background preloader

RubyInstaller for Windows

RubyInstaller for Windows

http://rubyinstaller.org/

Related:  RubyRuby Programming

Ruby and SciTE Daniela Robles (Guest) on 2012-11-11 20:58 Hi all, Ruby no longer comes together with SciTE, so I had to download the SciTE text editor separately. However, I find that Ruby and ScITE do not work together. How to append text to a file with Ruby By Alvin Alexander. Last updated: Feb 21, 2013 Ruby file FAQ: How do I append text to a file in Ruby? Solution: Appending text to a file with Ruby is similar to other languages: you need to open the file in "append" mode, write your data, and then close the file.

Introduction to Ruby Ruby is a powerful, flexible programming language you can use in web/Internet development, to process text, to create games, and as part of the popular Ruby on Rails web framework. Ruby is: High-level, meaning reading and writing Ruby is really easy—it looks a lot like regular English! class Array - Documentation for Ruby 2.0.0 ary & other_ary → new_ary click to toggle source Set Intersection — Returns a new array containing elements common to the two arrays, excluding any duplicates. The order is preserved from the original array. It compares elements using their hash and eql? methods for efficiency.

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 Array.new. Ruby Singleton Pattern Singleton is perhaps the most hated of all programming patterns. You can read some of the reasons for this in Why Singletons are Evil. But, I think it has some good usages. I will start by describing what a singleton pattern is, walk through different ways of implementing it in Ruby, and point to how it's used in Rails. Object Oriented Ruby Ruby is pure object-oriented language and everything appears to Ruby as an object. Every value in Ruby is an object, even the most primitive things: strings, numbers and even true and false. Even a class itself is an object that is an instance of the Class class. This chapter will take you through all the major functionalities related to Object Oriented Ruby.

10 Free E-Books on Ruby for Beginners Ruby may have lost some of its shine in recent months to JavaScript and Node.js, but it's still one of the most popular programming languages out there, and it's still growing. There are a large number of beginner's Ruby resources out there, and the material is diverse. Here are a few places to get started. Hackety Hack HTTPResponse (Ruby 2.3.0) body() click to toggle source Returns the full entity body. Calling this method a second or subsequent time will return the string already read. http.request_get('/index.html') {|res| puts res.body } http.request_get('/index.html') {|res| p res.body.object_id p res.body.object_id } body=(value) click to toggle source Because it may be necessary to modify the body, Eg, decompression this method facilitates that.

Related: