Class: GitHooks::Configurations
- Inherits:
-
Object
- Object
- GitHooks::Configurations
- Extended by:
- Forwardable
- 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: ConfigFile.new('.git_hooks.yml'), git_repository: Git.new('.')) ⇒ Configurations
constructor
A new instance of Configurations.
Constructor Details
#initialize(config_file: ConfigFile.new('.git_hooks.yml'), git_repository: Git.new('.')) ⇒ Configurations
Returns a new instance of Configurations.
12 13 14 15 16 17 18 |
# File 'lib/git_hooks/configurations.rb', line 12 def initialize( config_file: ConfigFile.new('.git_hooks.yml'), git_repository: Git.new('.') ) @config_file = config_file @git_repository = git_repository end |
Instance Attribute Details
#config_file ⇒ Object (readonly)
Returns the value of attribute config_file.
8 9 10 |
# File 'lib/git_hooks/configurations.rb', line 8 def config_file @config_file end |
#git_repository ⇒ Object (readonly)
Returns the value of attribute git_repository.
8 9 10 |
# File 'lib/git_hooks/configurations.rb', line 8 def git_repository @git_repository end |