lib/tocer/parsers/header.rb in tocer-11.1.0 vs lib/tocer/parsers/header.rb in tocer-12.0.0

- old
+ new

@@ -8,16 +8,12 @@ def initialize markdown @markdown = markdown end - def prefix - String markdown[/#{PUNCTUATION}{1,}/o] - end + def prefix = String(markdown[/#{PUNCTUATION}{1,}/o]) - def content - markdown[prefix.length + 1, markdown.length].strip - end + def content = markdown[prefix.length + 1, markdown.length].strip private attr_reader :markdown end