method
remove_tag_from

1.1.12 -
Show latest stable
-
0 notes -
Class: Spec::Story::Runner::StoryParser::State
- 1.1.4 (0)
- 1.1.12 (0)
- 1.2.0
- 1.2.8
- 1.3.0
- 1.3.1
- What's this?
remove_tag_from(tag, line)
public
Hide source
# File lib/spec/story/runner/story_parser.rb, line 131 def remove_tag_from(tag, line) tokens = line.split # validation of tag can go here tokens[0].downcase.match(/#{tag.to_s}:?/) ? (tokens[1..-1].join(' ')) : line end