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.
52 53 54 55 |
# File 'lib/norikra/udf_spec_helper.rb', line 52 def initialize(classname, methodname) @methodname = methodname @clazz = classObject(classname) end |
Instance Method Details
#_call(*args) ⇒ Object
57 58 59 |
# File 'lib/norikra/udf_spec_helper.rb', line 57 def _call(*args) @clazz.send(@methodname.to_sym, *args) end |