Module: VisualizeHelper
- Defined in:
- lib/visualize_helper/version.rb,
ext/visualize_helper/visualize_helper.c
Constant Summary collapse
- VERSION =
"0.0.10.25"
Class Method Summary collapse
-
.hello_world ⇒ Object
Hello World without parameters.
-
.teste(min, max, hash) ⇒ Object
Register the module Hello World with parameters.
Class Method Details
.hello_world ⇒ Object
Hello World without parameters
4 5 6 7 |
# File 'ext/visualize_helper/visualize_helper.c', line 4 static VALUE hello_world() { return rb_str_new_cstr("hello world"); } |
.teste(min, max, hash) ⇒ Object
Register the module Hello World with parameters
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'ext/visualize_helper/visualize_helper.c', line 20 static VALUE teste(VALUE self, VALUE min, VALUE max, VALUE hash) { int min_c = FIX2INT(min); int max_c = FIX2INT(max); int period = Qnil; VALUE array = rb_ary_new(); rb_hash_foreach(hash,testando_hash,array); //VALUE str1 = rb_str_new_cstr("OLá ..."); //VALUE str2 = rb_str_new_cstr("enfermeira!"); //VALUE str1 = INT2FIX(min_c); //VALUE str2 = INT2FIX(max_c); // //rb_ary_push(array,str1); //rb_ary_push(array,str2); return array; } |