Today I was working on a project where there was a class that looked (roughly) like this: class LazyColor
def initialize(real_color_id, name)
@real_color_id = real_color_id
@name = name
end def method_missing(method, *args, &block)
if real_color.respond_to?(method)
real_color.public_send(method, *args)
else
super
end
end attr_reader :real_color_id, :name private