You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
347 B
10 lines
347 B
class Person
|
|
def self.all # a static function that's called on the class itself, not an instance
|
|
[ ## ruby functions return the last line of code, so no need for an explicit 'return' statement
|
|
{ name: 'Joey', age:12 },
|
|
{ name: 'Sarah', age:52 },
|
|
{ name: 'Cthulhu', age: 8000 }
|
|
]
|
|
end
|
|
end
|