diff --git a/keywords.rb b/keywords.rb index 37e4b91..8d29102 100644 --- a/keywords.rb +++ b/keywords.rb @@ -108,7 +108,10 @@ def END # end # # p = Person.new - # p.name = "David" # Naming your person David! + # p.full_name = "David" # => Naming your person David! + # + # # Can still use name= + # p.name = "Jack" # => Naming your person Jack! # # class Person # def name=(name) @@ -116,7 +119,9 @@ def END # end # end # - # p.full_name = "David" # Please use fullname= + # # Even though name= got overriden - fullname= still works + # p.full_name = "David" # => Naming your person David! + # p.name = "David" # => Please use fullname= def alias end