Commit 63820fe5 authored by anonym's avatar anonym
Browse files

Expose our local ScriptProxy methods in Dogtail::Application.

parent 9d82539e
......@@ -153,6 +153,13 @@ module Dogtail
end
LOCAL_TREE_API_NODE_METHODS = [
:wait,
:get_field,
]
ALL_TREE_API_NODE_METHODS = TREE_API_NODE_METHODS + LOCAL_TREE_API_NODE_METHODS
class Application
def initialize(app)
......@@ -177,7 +184,7 @@ module Dogtail
self.class.interact(@app, *args, &block)
end
TREE_API_NODE_METHODS.each do |method|
ALL_TREE_API_NODE_METHODS.each do |method|
define_method(method) do |*args|
interact do |app|
app.method(method).call(*args)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment