Sha256: 3a828af5ad6cf7afe0359be02b8013a6b2dfea48412c7a23e4643eb9042db600
Contents?: true
Size: 306 Bytes
Versions: 1
Compression:
Stored size: 306 Bytes
Contents
class PGit::StoryBranch::StoryIdParser def initialize(branch_name) @branch_name = branch_name end def parse raise PGit::Error::User, "The current branch is not associated with a story. Does not have a story id." unless @branch_name.match(/\d+$/) @branch_name.match(/\d+$/)[0] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pgit-1.0.0 | lib/pgit/story_branch/story_id_parser.rb |