org.codehaus.waffle.controller
Class RubyController

java.lang.Object
  extended by org.codehaus.waffle.controller.RubyController

public class RubyController
extends java.lang.Object

This is a wrapper for the underlying ruby script

Author:
Michael Ward

Constructor Summary
RubyController(org.jruby.runtime.builtin.IRubyObject rubyObject)
           
 
Method Summary
 java.lang.Object execute()
          This will invoke the method on the ruby object instance this controller is maintaining.
 org.jruby.runtime.builtin.IRubyObject getRubyObject()
           
 void setMethodName(java.lang.String methodName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RubyController

public RubyController(org.jruby.runtime.builtin.IRubyObject rubyObject)
Method Detail

setMethodName

public void setMethodName(java.lang.String methodName)

getRubyObject

public org.jruby.runtime.builtin.IRubyObject getRubyObject()

execute

public java.lang.Object execute()
This will invoke the method on the ruby object instance this controller is maintaining.

Returns:
the result from the method invocation.


Copyright © 2008. All Rights Reserved.