From 9e155ce8a34621169670a3a302bab15091588174 Mon Sep 17 00:00:00 2001 From: Rene Saarsoo Date: Thu, 10 Jan 2013 16:08:44 +0200 Subject: [PATCH] Make Since class return tagdef hash. --- lib/jsduck/tag/since.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/jsduck/tag/since.rb b/lib/jsduck/tag/since.rb index 72a55abb..e4a9590d 100644 --- a/lib/jsduck/tag/since.rb +++ b/lib/jsduck/tag/since.rb @@ -10,9 +10,10 @@ module JsDuck::Tag end def parse(p) - p.add_tag(:since) - p.skip_horiz_white - p.current_tag[:version] = p.match(/.*$/).strip + { + :tagname => :since, + :version => p.hw.match(/.*$/).strip, + } end def process_doc(tags) -- GitLab