rx.lang.jruby
Class JRubyActionWrapper<T1,T2,T3,T4>

java.lang.Object
  extended by rx.lang.jruby.JRubyActionWrapper<T1,T2,T3,T4>
Type Parameters:
T1 -
T2 -
T3 -
T4 -
All Implemented Interfaces:
rx.functions.Action, rx.functions.Action0, rx.functions.Action1<T1>, rx.functions.Action2<T1,T2>, rx.functions.Action3<T1,T2,T3>, rx.functions.Function

public class JRubyActionWrapper<T1,T2,T3,T4>
extends java.lang.Object
implements rx.functions.Action, rx.functions.Action0, rx.functions.Action1<T1>, rx.functions.Action2<T1,T2>, rx.functions.Action3<T1,T2,T3>

Concrete wrapper that accepts a RubyProc and produces any needed Rx Action.


Constructor Summary
JRubyActionWrapper(org.jruby.runtime.ThreadContext context, org.jruby.RubyProc proc)
           
 
Method Summary
 void call()
           
 void call(T1 t1)
           
 void call(T1 t1, T2 t2)
           
 void call(T1 t1, T2 t2, T3 t3)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JRubyActionWrapper

public JRubyActionWrapper(org.jruby.runtime.ThreadContext context,
                          org.jruby.RubyProc proc)
Method Detail

call

public void call()
Specified by:
call in interface rx.functions.Action0

call

public void call(T1 t1)
Specified by:
call in interface rx.functions.Action1<T1>

call

public void call(T1 t1,
                 T2 t2)
Specified by:
call in interface rx.functions.Action2<T1,T2>

call

public void call(T1 t1,
                 T2 t2,
                 T3 t3)
Specified by:
call in interface rx.functions.Action3<T1,T2,T3>