Displaying 1 result from an estimated 1 matches for "856198".
Did you mean:
656198
2007 Nov 27
1
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