Class: WO::Hook
- Inherits:
-
Object
- Object
- WO::Hook
- Defined in:
- lib/wo/hook.rb,
lib/wo/hook/zsh.rb
Defined Under Namespace
Classes: Zsh
Instance Attribute Summary collapse
-
#sh ⇒ Object
readonly
Returns the value of attribute sh.
Instance Method Summary collapse
- #hook ⇒ Object
-
#initialize(sh) ⇒ Hook
constructor
A new instance of Hook.
Constructor Details
#initialize(sh) ⇒ Hook
Returns a new instance of Hook.
5 6 7 |
# File 'lib/wo/hook.rb', line 5 def initialize(sh) @sh = sh end |
Instance Attribute Details
#sh ⇒ Object (readonly)
Returns the value of attribute sh.
3 4 5 |
# File 'lib/wo/hook.rb', line 3 def sh @sh end |
Instance Method Details
#hook ⇒ Object
9 10 11 |
# File 'lib/wo/hook.rb', line 9 def hook constantize.new.hook end |