Class: Monolith::BranchNameFormatter
- Inherits:
-
Object
- Object
- Monolith::BranchNameFormatter
- Defined in:
- lib/monolith/branch_name_formatter.rb
Instance Method Summary collapse
-
#initialize(name) ⇒ BranchNameFormatter
constructor
A new instance of BranchNameFormatter.
- #name ⇒ Object
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
#name ⇒ Object
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 |