Class: Method

Inherits:
Object
  • Object
show all
Defined in:
lib/hyper_trace/hyper_trace.rb

Instance Method Summary collapse

Instance Method Details

#parametersObject



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