Class: GitHooks::Configurations
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- GitHooks::Configurations
- Defined in:
- lib/git_hooks/configurations.rb
Instance Attribute Summary collapse
-
#config_file ⇒ Object
readonly
Returns the value of attribute config_file.
-
#git_repository ⇒ Object
readonly
Returns the value of attribute git_repository.
Instance Method Summary collapse
-
#initialize(config_file: default_config_file, git_repository: default_git_repository) ⇒ Configurations
constructor
A new instance of Configurations.
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_file ⇒ Object (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_repository ⇒ Object (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 |