A
Adam Sanderson
When do you guys choose to inherit from a class, use a delegate, or
forwarding?
What are some examples of common uses for Delegates or Forwardable?
I have these fuzzy notions of times they may be useful, but some common
examples would be nice.
Any thought?
.adam
For reference:
[Forwardable]
http://ruby-doc.org/stdlib/libdoc/forwardable/rdoc/index.html
[Delegate] http://ruby-doc.org/stdlib/libdoc/delegate/rdoc/index.html
forwarding?
What are some examples of common uses for Delegates or Forwardable?
I have these fuzzy notions of times they may be useful, but some common
examples would be nice.
Any thought?
.adam
For reference:
[Forwardable]
http://ruby-doc.org/stdlib/libdoc/forwardable/rdoc/index.html
[Delegate] http://ruby-doc.org/stdlib/libdoc/delegate/rdoc/index.html