Plugin - How to access object from instance method

Quick question: Given a basic plugin… how can I access an object that
I instantiated in the acts_as method from an instance method? Probably
some sort of accessor… but where?

def self.included(base)
base.extend ClassMethods
end

module ClassMethods
def acts_as_test
object = Object.new ## This object needs to be accessible from the
Instance Methods
end
include Acts::As::Test::InstanceMethods
end

module InstanceMethods
def do_something
return object.process ## object created in acts_as_test
end
end

You may be looking for instance_variable_get

On Nov 27, 11:16 am, James C. [email protected]