Method: Decode::Documentation#parameters
- Defined in:
- lib/decode/documentation.rb
#parameters {|String| ... } ⇒ Enumerable
The parameter lines of the comment block. e.g. ‘@param value [String] The value.`
90 91 92 93 94 95 96 97 98 |
# File 'lib/decode/documentation.rb', line 90 def parameters return to_enum(:parameters) unless block_given? @comments.each do |comment| if match = comment.match(PARAMETER) yield match end end end |