Class: Proc
Direct Known Subclasses
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/scaruby/core_ext/proc.rb', line 9 def method_missing(name, *args, &block) if self.is_a? Scaruby::Function self.send(name, *args, &block) else self.extend(Scaruby::Function).send(name, *args, &block) end end |