Class: Monolith::BranchNameFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/monolith/branch_name_formatter.rb

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ BranchNameFormatter

Returns a new instance of BranchNameFormatter.



3
4
5
# File 'lib/monolith/branch_name_formatter.rb', line 3

def initialize(name)
  @name = name
end

Instance Method Details

#nameObject



7
8
9
10
11
12
# File 'lib/monolith/branch_name_formatter.rb', line 7

def name
  strip_selected_branch_prefix
  strip_whitespace_prefix
  strip_remote_prefix
  @name
end