Sha256: 0d2518648fc2ad404002171106a483aae45d2d4fb3fa566137b5192e7c06ce2c
Contents?: true
Size: 504 Bytes
Versions: 7
Compression:
Stored size: 504 Bytes
Contents
module Cp8Cli class BranchName def initialize(user:, target:, story:) @user = user @target = target @story = story end def to_s parts.join(".") end private attr_reader :user, :target, :story def parts parts = [] parts << user.initials.downcase parts << title parts << target parts << story.short_link parts end def title story.title.parameterize[0..50] end end end
Version data entries
7 entries across 7 versions & 1 rubygems