Class: Gitmore::BranchMatcher

Inherits:
Object
  • Object
show all
Includes:
BranchHelper, Branches, RubyHelper, Statustician
Defined in:
lib/branch_matcher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Statustician

#diffs, #status

Methods included from Branches

#branches, #checkout, #fetches, #pulls

Methods included from RubyHelper

#gems, #versions

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

#matcherObject

Returns the value of attribute matcher.



9
10
11
# File 'lib/branch_matcher.rb', line 9

def matcher
  @matcher
end

#optionObject

Returns the value of attribute option.



9
10
11
# File 'lib/branch_matcher.rb', line 9

def option
  @option
end

#repositoriesObject

Returns the value of attribute repositories.



9
10
11
# File 'lib/branch_matcher.rb', line 9

def repositories
  @repositories
end