class Expo::Proxy

Public Class Methods

new(*objects) click to toggle source
# File lib/expo.rb, line 160
def initialize(*objects)
  @objects = objects
end

Public Instance Methods

method_missing(method, *args, &block) click to toggle source
# File lib/expo.rb, line 164
def method_missing(method, *args, &block)
  @objects.detect{|obj| obj.respond_to? method}.send(
    method, *args, &block
  )
end