lib/vedeu/distributed/server.rb in vedeu-0.4.6 vs lib/vedeu/distributed/server.rb in vedeu-0.4.7

- old
+ new

@@ -11,14 +11,13 @@ $SAFE = 1 # disable `eval` and related calls on strings passed include Singleton - # @param data [String|Symbol] - # @return [void] - def self.input(data) - instance.input(data) + # @see Vedeu::Distributed::Server#input + def self.input(data, type = :key) + instance.input(data, type) end # @return [void] def self.output instance.output @@ -48,12 +47,13 @@ def self.stop instance.stop end # @param data [String|Symbol] + # @param type [Symbol] Either :keypress or :command. # @return [void] - def input(data) - Vedeu.trigger(:_drb_input_, data) + def input(data, type = :keypress) + Vedeu.trigger(:_drb_input_, data, type) end alias_method :read, :input # @return [void] def output