Module: FFWD::Plugin::ClassMethods
- Defined in:
- lib/ffwd/plugin.rb
Instance Method Summary collapse
Instance Method Details
#register_plugin(name, opts = {}) ⇒ Object
92 93 94 95 96 97 98 99 100 |
# File 'lib/ffwd/plugin.rb', line 92 def register_plugin(name, opts={}) = {:mod => self} [:setup_input_method_name] = (opts[:setup_input_method] || :setup_input) [:setup_output_method_name] = (opts[:setup_output_method] || :setup_output) [:setup_tunnel_method_name] = (opts[:setup_tunnel_method] || :setup_tunnel) FFWD::Plugin.discovered[name] = end |