Class: Method
- Inherits:
-
Object
- Object
- Method
- Defined in:
- lib/hyper_trace/hyper_trace.rb
Instance Method Summary collapse
Instance Method Details
#parameters ⇒ Object
10 11 12 13 14 15 |
# File 'lib/hyper_trace/hyper_trace.rb', line 10 def parameters /.*function[^(]*\(([^)]*)\)/ .match(`#{@method}.toString()`)[1] .split(',') .collect { |param| [:req, param.strip.to_sym] } end |