Class: Norikra::UDFSpecHelper::UDFInstance
- Inherits:
-
Object
- Object
- Norikra::UDFSpecHelper::UDFInstance
- Includes:
- UDFHelper
- Defined in:
- lib/norikra/udf_spec_helper.rb
Instance Method Summary collapse
- #_call(*args) ⇒ Object
-
#initialize(classname, methodname) ⇒ UDFInstance
constructor
A new instance of UDFInstance.
Methods included from UDFHelper
Constructor Details
#initialize(classname, methodname) ⇒ UDFInstance
Returns a new instance of UDFInstance.
54 55 56 57 |
# File 'lib/norikra/udf_spec_helper.rb', line 54 def initialize(classname, methodname) @methodname = methodname @clazz = classObject(classname) end |
Instance Method Details
#_call(*args) ⇒ Object
59 60 61 |
# File 'lib/norikra/udf_spec_helper.rb', line 59 def _call(*args) @clazz.send(@methodname.to_sym, *args) end |