Class: Gitmore::BranchMatcher
- Inherits:
-
Object
- Object
- Gitmore::BranchMatcher
- Includes:
- BranchHelper, Branches, RubyHelper, Statustician
- Defined in:
- lib/branch_matcher.rb
Instance Attribute Summary collapse
-
#matcher ⇒ Object
Returns the value of attribute matcher.
-
#option ⇒ Object
Returns the value of attribute option.
-
#repositories ⇒ Object
Returns the value of attribute repositories.
Instance Method Summary collapse
-
#initialize(matcher = nil, option = nil) ⇒ BranchMatcher
constructor
A new instance of BranchMatcher.
Methods included from Statustician
Methods included from Branches
#branches, #checkout, #fetches, #pulls
Methods included from RubyHelper
Methods included from BranchHelper
#branch_exists?, #clean_status?, #current_branch, #format_branch_info, #similar_branch_exists?
Constructor Details
#initialize(matcher = nil, option = nil) ⇒ BranchMatcher
Returns a new instance of BranchMatcher.
16 17 18 19 20 |
# File 'lib/branch_matcher.rb', line 16 def initialize(matcher=nil, option=nil) @matcher = matcher || 'master' @option = option @repositories = Gitmore::Repositories.get end |
Instance Attribute Details
#matcher ⇒ Object
Returns the value of attribute matcher.
9 10 11 |
# File 'lib/branch_matcher.rb', line 9 def matcher @matcher end |
#option ⇒ Object
Returns the value of attribute option.
9 10 11 |
# File 'lib/branch_matcher.rb', line 9 def option @option end |
#repositories ⇒ Object
Returns the value of attribute repositories.
9 10 11 |
# File 'lib/branch_matcher.rb', line 9 def repositories @repositories end |