Module: JaxrsDoc::ParamDescriptionScanner
- Defined in:
- lib/parse.rb
Class Method Summary collapse
Class Method Details
.scan_params_descriptions(text) ⇒ Object
34 35 36 37 38 39 40 41 42 43 |
# File 'lib/parse.rb', line 34 def self.scan_params_descriptions(text) params_descriptions = Hash.new("") text.each_line { |line| if(param_index = line.index("@param")) param_name, param_desc = line[(param_index + 6)..-1].split(" ", 2); params_descriptions.store(param_name, param_desc) end } params_descriptions end |