Class: CommitMsgUrlShortener::HookCode
- Inherits:
-
Object
- Object
- CommitMsgUrlShortener::HookCode
- Defined in:
- lib/commit-msg-url-shortener/hook_code.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#interpreter ⇒ Object
readonly
Returns the value of attribute interpreter.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(interpreter, code) ⇒ HookCode
constructor
A new instance of HookCode.
Constructor Details
#initialize(interpreter, code) ⇒ HookCode
Returns a new instance of HookCode.
4 5 6 7 |
# File 'lib/commit-msg-url-shortener/hook_code.rb', line 4 def initialize interpreter, code @interpreter = interpreter @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/commit-msg-url-shortener/hook_code.rb', line 3 def code @code end |
#interpreter ⇒ Object (readonly)
Returns the value of attribute interpreter.
3 4 5 |
# File 'lib/commit-msg-url-shortener/hook_code.rb', line 3 def interpreter @interpreter end |