Module: NullObject
- Included in:
- NullStatsHandler
- Defined in:
- lib/status_lib/null_object.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args, &block) ⇒ Object
2 3 4 5 |
# File 'lib/status_lib/null_object.rb', line 2 def method_missing(meth, *args, &block) return meth.call(*args, &block) if respond_to?(meth) yield if block_given? end |