Ruby - Basics.

by msypniewski511 in Ruby, Ruby on Rails

One program, multiple files

A close relative of require is load. The main difference is that if you do this

require "required.rb"
require "required.rb"

nothing happens the second time; whereas if you do this

load "required.rb"
load "required.rb"

Ruby reads in the file twice.

Audit Logging in Ruby and Rails
Complementing exceptions - Introducing monads for error handling in ruby

Articles

How to Delegate Methods in Ruby
Keep Your Ruby App Secure with Bundler
An Introduction to Lambdas in Ruby

0 Replies


Leave a replay

To replay you need to login. Don't have an account? Sign up for one.