Example usage of design pattern for Ruby - Runtime Extends