Module: Sys::Proc::Concern::StaticInstance::ClassMethods
- Defined in:
- lib/sys/proc/concern/static_instance.rb
Overview
Class methods
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
22 23 24 25 26 27 28 |
# File 'lib/sys/proc/concern/static_instance.rb', line 22 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
30 31 32 33 34 |
# File 'lib/sys/proc/concern/static_instance.rb', line 30 def respond_to_missing?(method, include_private = false) return true if new.respond_to?(method, include_private) super(method, include_private) end |