Class: GitHooks::Utils::Config::HookWrapper
- Inherits:
-
Object
- Object
- GitHooks::Utils::Config::HookWrapper
- Defined in:
- lib/git_hooks/utils/config.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #hook_class ⇒ Object
-
#initialize(options) ⇒ HookWrapper
constructor
A new instance of HookWrapper.
Constructor Details
#initialize(options) ⇒ HookWrapper
Returns a new instance of HookWrapper.
12 13 14 15 |
# File 'lib/git_hooks/utils/config.rb', line 12 def initialize() @hook_class_name = .keys.first @options = .values.first end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
10 11 12 |
# File 'lib/git_hooks/utils/config.rb', line 10 def @options end |
Instance Method Details
#hook_class ⇒ Object
17 18 19 |
# File 'lib/git_hooks/utils/config.rb', line 17 def hook_class @hook_class ||= "GitHooks::Notifier::#{@hook_class_name.to_s.camelize}Client".constantize end |