Ruby Documentation Flashcards

1
Q
instance method
(https://medium.com/@weberzt/class-vs-instance-methods-in-ruby-da4de44ac6a0)
A

A method that belongs to instances of a class, not to the class itself. Instance methods can only be called on instances of classes. Instance methods are always defined def method_name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Classes

https://medium.com/@weberzt/class-vs-instance-methods-in-ruby-da4de44ac6a0

A

a grouping of methods that exist to construct an object by creating a new instance of the class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Instances

https://medium.com/@weberzt/class-vs-instance-methods-in-ruby-da4de44ac6a0

A

the objects created by a class.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
Instance methods
(https://medium.com/@weberzt/class-vs-instance-methods-in-ruby-da4de44ac6a0)
A

Can only be called on instances of classes otherwise known as objects. Always defined def method_name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly