Method: Ruber::KTextEditorWrapper::InterfaceProxy#method_missing
- Defined in:
- lib/ruber/editor/ktexteditor_wrapper.rb
#method_missing(name, *args, &blk) ⇒ Object
Passes the method call to the object cast to the current interface. If the argument list contains instances of classes which mix-in KTextEditorWrapper, they’re replaced with the object they wrap before being passed to the interface.
79 80 81 82 |
# File 'lib/ruber/editor/ktexteditor_wrapper.rb', line 79 def method_missing name, *args, &blk args.map!{|a| a.is_a?(KTextEditorWrapper) ? a.send(:internal) : a} @interface.send name, *args, &blk end |