Sha256: 5d405ce6e7a652cffc16421713798828413018e2b2a736f206f218be9fca0564
Contents?: true
Size: 1.2 KB
Versions: 3
Compression:
Stored size: 1.2 KB
Contents
# -*- encoding: utf-8 -*- # Author:: Couchbase <info@couchbase.com> # Copyright:: 2012 Couchbase, Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # require 'builder' module YardXML module Helper include ::YARD::Templates::Helpers::TextHelper alias :text_signature :signature include ::YARD::Templates::Helpers::HtmlHelper alias :html_signature :signature def docstring_summary(object) object.docstring.summary.gsub(/\n\s*/m, ' ') end def docstring_description(object, summary) body = object.docstring.to_s.dup if body.start_with?(summary) body[0..summary.size] = '' end html_markup_rdoc(body) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
yard-xml-0.2.0 | lib/yard-xml/helper.rb |
yard-xml-0.1.3 | lib/yard-xml/helper.rb |
yard-xml-0.1.2 | lib/yard-xml/helper.rb |