Module: Sys::Proc::Concern::StaticInstance::ClassMethods
- Defined in:
- lib/sys/proc/concern/static_instance.rb
Instance Method Summary collapse
-
#method_missing(method, *args, &block) ⇒ Object
Provides access to instance methods.
- #respond_to_missing?(method, include_private = false) ⇒ Boolean
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
Provides access to instance methods
17 18 19 20 21 22 23 |
# File 'lib/sys/proc/concern/static_instance.rb', line 17 def method_missing(method, *args, &block) if respond_to_missing?(method) new.public_send(method, *args, &block) else super end end |
Instance Method Details
#respond_to_missing?(method, include_private = false) ⇒ Boolean
25 26 27 28 29 |
# File 'lib/sys/proc/concern/static_instance.rb', line 25 def respond_to_missing?(method, include_private = false) return true if new.respond_to?(method, include_private) super(method, include_private) end |