class Automux::Core::Hook
Constants
- POST
- PRE
Attributes
command[R]
type[R]
Public Class Methods
new(target, type, command)
click to toggle source
# File lib/automux/core/hook.rb, line 12 def initialize(target, type, command) @type = self.class.const_get(type.upcase) @command = ERB.new(command).result(target.get_binding) end
Public Instance Methods
post?()
click to toggle source
# File lib/automux/core/hook.rb, line 21 def post? type == POST end
pre?()
click to toggle source
# File lib/automux/core/hook.rb, line 17 def pre? type == PRE end