Class: WO::Hook

Inherits:
Object
  • Object
show all
Defined in:
lib/wo/hook.rb,
lib/wo/hook/zsh.rb

Defined Under Namespace

Classes: Zsh

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#shObject (readonly)

Returns the value of attribute sh.



3
4
5
# File 'lib/wo/hook.rb', line 3

def sh
  @sh
end

Instance Method Details

#hookObject



9
10
11
# File 'lib/wo/hook.rb', line 9

def hook
  constantize.new.hook
end