Bugs: Browse | Submit New | Admin

[#17550] graph function not defined

Date:
2008-01-28 06:40
Priority:
3
Submitted By:
Nobody
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
graph function not defined

Detailed description
The example function_test.rb does not work.  First, the example calls #dump with no arguments.  However, the function
expects one argument, which appears to be the filename.  There were some comments in the source file about that not
working, but it seems to work.  In any case, the dump funtion requires one argument, or the test script fails.

Second, if the argument is added for dump, the test script gets to the #graph call, and fails saying "undefined
method 'graph'".  The source code defines #graph as a singleton method.  Changing the graph function definition
in the source code to a regular instance method rather than a singleton method appears to fix the problem.  I have to
admit I do not understand the significance of this being a singleton method, but in any case, unless this is done, the
example script fails.

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item