Skip to content

Commit

Permalink
Add an example of an operator delegation
Browse files Browse the repository at this point in the history
  • Loading branch information
vendethiel authored and jhass committed Mar 7, 2018
1 parent 1b4261c commit 8e66045
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/object.cr
Original file line number Diff line number Diff line change
Expand Up @@ -1072,6 +1072,7 @@ class Object
# delegate downcase, to: @string
# delegate gsub, to: @string
# delegate empty?, capitalize, to: @string
# delegate :[], to: @string
# end
#
# wrapper = StringWrapper.new "HELLO"
Expand Down

0 comments on commit 8e66045

Please sign in to comment.