metasploit-framework/lib/rkelly/runtime/ruby_function.rb

14 lines
198 B
Ruby

module RKelly
class Runtime
class RubyFunction
def initialize(&block)
@code = block
end
def call(chain, *args)
@code.call(*args)
end
end
end
end