Class: MethodTracer
- Inherits:
-
Object
- Object
- MethodTracer
- Defined in:
- lib/hyperlayer/method_tracer.rb
Overview
lib/hyperlayer/method_tracer.rb
Class Method Summary collapse
Class Method Details
.arguments_for(tp) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/hyperlayer/method_tracer.rb', line 4 def self.arguments_for(tp) method_params = tp.self.method(tp.method_id).parameters method_params.map do |type, name| [name, tp.binding.local_variable_get(name)] end.to_h rescue => e {} # Return an empty hash in case of errors end |