Sha256: 37284bb6a2ded8b67eaab674fd3c7fe602e4b742dc783614f0baa0d96883c631

Contents?: true

Size: 111 Bytes

Versions: 5

Compression:

Stored size: 111 Bytes

Contents

def strip_doc(doc)
  doc.strip_doc
end

class String
  def strip_doc
    gsub(/^#{self[/\A +/]}/,'')
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bioinform-0.3.1 lib/bioinform/support/strip_doc.rb
bioinform-0.3.0 lib/bioinform/support/strip_doc.rb
bioinform-0.2.2 lib/bioinform/support/strip_doc.rb
bioinform-0.2.1 lib/bioinform/support/strip_doc.rb
bioinform-0.2.0 lib/bioinform/support/strip_doc.rb