mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-17 04:04:20 +02:00
s/$/#/ typo
This commit is contained in:
@@ -281,7 +281,7 @@ class Human
|
|||||||
end
|
end
|
||||||
|
|
||||||
# A class method uses self to distinguish from instance methods.
|
# A class method uses self to distinguish from instance methods.
|
||||||
$ It can only be called on the class, not an instance.
|
# It can only be called on the class, not an instance.
|
||||||
def self.say(msg)
|
def self.say(msg)
|
||||||
puts "#{msg}"
|
puts "#{msg}"
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user