Module: RedirectHelper

Included in:
EvalHook::HookHandler
Defined in:
lib/evalhook/redirect_helper.rb

Overview

This file is part of the evalhook project, github.com/tario/evalhook

Copyright © 2010 Roberto Dario Seminara <[email protected]>

evalhook is free software: you can redistribute it and/or modify it under the terms of the gnu general public license as published by the free software foundation, either version 3 of the license, or (at your option) any later version.

evalhook is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. see the gnu general public license for more details.

you should have received a copy of the gnu general public license along with evalhook. if not, see <www.gnu.org/licenses/>.

Defined Under Namespace

Modules: MethodRedirect Classes: Redirect, RedirectCdecl, RedirectGasgn, Value

Instance Method Summary collapse

Instance Method Details

#const_value(value) ⇒ Object



87
88
89
# File 'lib/evalhook/redirect_helper.rb', line 87

def const_value(value)
  Value.new(value)
end

#global_value(value) ⇒ Object



83
84
85
# File 'lib/evalhook/redirect_helper.rb', line 83

def global_value(value)
  Value.new(value)
end

#redirect_cdecl(*args) ⇒ Object



99
100
101
# File 'lib/evalhook/redirect_helper.rb', line 99

def redirect_cdecl(*args)
  RedirectCdecl.new(*args)
end

#redirect_gasgn(*args) ⇒ Object



95
96
97
# File 'lib/evalhook/redirect_helper.rb', line 95

def redirect_gasgn(*args)
  RedirectGasgn.new(*args)
end

#redirect_method(*args) ⇒ Object



91
92
93
# File 'lib/evalhook/redirect_helper.rb', line 91

def redirect_method(*args)
  Redirect.new(*args)
end