Don’t know if i should write this to rails or ruby mailinglist. But in
case i wan’t to extend the facebooker-plugin without touching it, i will
- Instance-Methods of modules?
The methods in a module may be instance methods or module methods.
methods appear as methods in a class when the module is included, module
methods do not. Conversely, module methods may be called without
encapsulating object, while instance methods may not. (See
The method which i wan’t to alias in this case is a method which is
when i call:
And it’s not listed, when i call:
- What I wanna do?
I wan’t to extend facebooker with tracking-functionality for our
For this, i want to write an second plugin which is loaded after it
(beginning with a letter higher then F).
In this plugin i wan’t to alias the methods from facebooker like
And write a new method which do the tracking and call the old
Why can’t i do this with:
This should just be a normal plain method!!
This don’t work too:
class << self
It seems this possibility just works when there are module-methods.
I have tried the following things, but none of this works (for me):
(Don’t work because there are no Instance of the Module … )
Theoretically i can Use the Name of the Class which included the model
extend it this way. But for me, without any experience on developing on
rails itself it would be easier if i can extend the classes and modules
which are only defined in the facebooker-plugin.
Greetings from Germany,