Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/cocoa/extensions.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args) ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/cocoa/extensions.rb', line 11 def method_missing meth,*args if Cocoa::NSString.method_defined?(meth) str = Cocoa::NSString.new(true) str.object = ObjC.String_to_NSString(self) str.send(meth,*args) else super end end |