Module: Roap::DigestExtension

Extended by:
AttributeBase
Defined in:
lib/roap/exts/digest_extension.rb

Instance Method Summary collapse

Methods included from AttributeBase

attr, extended, get_pure, included, on

Instance Method Details

#get_param_index(method, name) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/roap/exts/digest_extension.rb', line 7

def get_param_index method, name
  idx = method.pure.parameters.index [:req, name.to_sym]
  
  if idx == nil
    raise ArgumentError, "parameter '#{md[:key]}' not found"
  end

  idx
end