System File Override

You can just redefine the methods to override them … Ruby takes the definitions in order and your plugin code is evaluated last.

e.g. in my plugin, ‘onebox assistant’, I redefine external_onebox in plugin.rb

after_initialize do

  Oneboxer.module_eval do

    def self.external_onebox(url)

       # my new code goes here

More from fellow plugin devs here:

3 Likes