summaryrefslogtreecommitdiffstats
path: root/lib/blink/client.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/blink/client.rb')
-rw-r--r--lib/blink/client.rb33
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/blink/client.rb b/lib/blink/client.rb
new file mode 100644
index 000000000..79c49f367
--- /dev/null
+++ b/lib/blink/client.rb
@@ -0,0 +1,33 @@
+#!/usr/local/bin/ruby -w
+
+# $Id$
+
+# the available clients
+
+require 'blink'
+require 'blink/function'
+
+module Blink
+ class ClientError < RuntimeError; end
+ #---------------------------------------------------------------
+ class Client
+ attr_accessor :objects
+
+ class Local
+ def callfunc(name,*args)
+ if function = Blink::Function[name]
+ return function.call(*args)
+ else
+ return nil
+ end
+ end
+
+ def objects=(list)
+ list.each { |object|
+ # create a Blink object from the list...
+ }
+ end
+ end
+ end
+ #---------------------------------------------------------------
+end