Class: GitHooks::Configurations

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/git_hooks/configurations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config_file: default_config_file, git_repository: default_git_repository) ⇒ Configurations

Returns a new instance of Configurations.



9
10
11
12
13
14
15
16
17
# File 'lib/git_hooks/configurations.rb', line 9

def initialize(
  config_file: default_config_file,
  git_repository: default_git_repository
)
  @config_file = config_file
  @git_repository = git_repository

  super(config_file)
end

Instance Attribute Details

#config_fileObject (readonly)

Returns the value of attribute config_file.



7
8
9
# File 'lib/git_hooks/configurations.rb', line 7

def config_file
  @config_file
end

#git_repositoryObject (readonly)

Returns the value of attribute git_repository.



7
8
9
# File 'lib/git_hooks/configurations.rb', line 7

def git_repository
  @git_repository
end