diff options
-rw-r--r-- | lib/blink/client.rb | 33 |
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 |