# File lib/generator/function.rb, line 49 49: def get_params 50: params = (@node / './attributelist/parmlist/parm') 51: declaration = decl 52: unless params.empty? 53: result = params.inject([]) do |array, node| 54: declaration.gsub!(/#{Regexp.escape(Type.new(:node => node, :typedefs => @typedefs).get_attr('type'))}/, '') 55: array << Argument.new(:node => node, :typedefs => @typedefs).to_s 56: end 57: else 58: result = @full_decl.scan(/p.f\((.*)\)/).flatten[0].split(',').inject([]) do |array, type| 59: array << (type == 'void' ? '' : Type.new(:declaration => type, :typedefs => @typedefs).to_s) 60: end 61: end 62: @full_decl = declaration + type 63: result 64: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.