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
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
3
Q
Instances
https://medium.com/@weberzt/class-vs-instance-methods-in-ruby-da4de44ac6a0
A
the objects created by a class.
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