DISQUS

DISQUS Hello! Software Test Objects is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Jump to original thread »
Author

strategy by delagating to an alias

Started by marekj · 9 months ago

I saw this really nice way of setting behaviour. You call a Student object which has a method formal_greeting that delegates to say_hi, but say_hi is aliasing say_hello which calls a superclass since the say_hello of Student is declared below.

class Person
def say_hello
puts 'how ... Continue reading »

0 comments

This thread has no comments yet.

Add New Comment

Returning? Login