changed?

changed?() Instance Public methods Returns true if this object's state has been changed since the last notify_observers call.

count_observers

count_observers() Instance Public methods Return the number of observers associated with this object.

delete_observer

delete_observer(observer) Instance Public methods Remove observer as an observer on this object so that it will no longer receive notifications. observer An observer of this Observable

delete_observers

delete_observers() Instance Public methods Remove all observers associated with this object.

notify_observers

notify_observers(*arg) Instance Public methods Notify observers of a change in state if this object's changed state is true. This will invoke the method named in add_observer, passing *arg. The changed state is then set to false. *arg Any arguments to pass to the observers.

new

new(obj, dispid, gettypes, settypes) Class Public methods

[]

[](*args) Instance Public methods

[]=

[]=(*args) Instance Public methods

capture2

capture2(*cmd) Class Public methods ::capture2 captures the standard output of a command. stdout_str, status = Open3.capture2([env,] cmd... [, opts]) The arguments env, cmd and opts are passed to ::popen3 except opts and opts. See Process.spawn. If opts is specified, it is sent to the command's standard input. If opts is true, internal pipes are set to binary mode. Example: # factor is a command for integer factorization. o, s = Open3.capture2("factor", :stdin_data=>"42") p o #

capture2e

capture2e(*cmd) Class Public methods ::capture2e captures the standard output and the standard error of a command. stdout_and_stderr_str, status = Open3.capture2e([env,] cmd... [, opts]) The arguments env, cmd and opts are passed to ::popen3 except opts and opts. See Process.spawn. If opts is specified, it is sent to the command's standard input. If opts is true, internal pipes are set to binary mode. Example: # capture make log make_log, s = Open3.capture2e("make")