The case of the missing method — a Ruby mystery story

Get Started. It's Free
or sign up with your email address
Rocket clouds
The case of the missing method — a Ruby mystery story by Mind Map: The case of the missing method — a Ruby mystery story

1. by Nadia Odunayo @nodunayo

2. Ruby Objects

2.1. Instance Objects

2.2. Class Objects

2.2.1. The class of a class is called "metaclass"

2.3. Hierarchy

2.3.1. Object

2.3.1.1. Class

2.3.1.1.1. Superclass

2.3.1.1.2. Singleton Class

2.3.1.2. Singleton Class

3. Singleton Classes

3.1. Ruby internal

3.2. hold methods defined on one object

3.3. understanding them helps understanding DSLs' behaviours

3.4. invisible yet everywhere

4. DSL

4.1. define business rules

4.2. be cautious when adding instance specific stuff

4.3. Rails is a collection of well written DSLs

4.4. RSpec as well

5. Methods

5.1. every method is an instance method