method
handle_constants
v2_2_9 -
Show latest stable
-
0 notes -
Class: C
- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378 (0)
- 1_9_2_180 (0)
- 1_9_3_125 (0)
- 1_9_3_392 (0)
- 2_1_10 (0)
- 2_2_9 (0)
- 2_4_6
- 2_5_5
- 2_6_3
- What's this?
handle_constants(type, var_name, const_name, definition)
public
Adds constants. By providing some_value: at the start of the comment you can override the C value of the comment to give a friendly definition.
/* 300: The perfect score in bowling */ rb_define_const(cFoo, "PERFECT", INT2FIX(300);
Will override INT2FIX(300) with the value 300 in the output RDoc. Values may include quotes and escaped colons (:).