Skip to content

Commit

Permalink
Remove anchors from transforms as it doesn't really impact the docume…
Browse files Browse the repository at this point in the history
…ntation but does cause issues when transform are assigned to variables and interpolated in step defs
  • Loading branch information
Stephen-Kaye committed Jan 6, 2017
1 parent e57b61a commit acfbfbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/yard/handlers/step_transform_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class YARD::Handlers::Ruby::StepTransformHandler < YARD::Handlers::Ruby::Base
o.source = statement.source
o.comments = statement.comments
o.keyword = statement[0].source
o.value = statement[1].source
o.value = statement[1].source.gsub(/(^\(?\/|\/\)?$)/, '').gsub(/(^\^|\$$)/, '')
end

obj = register instance
Expand Down

0 comments on commit acfbfbb

Please sign in to comment.