Module: Lost
- Defined in:
- lib/lost.rb,
ext/lost/lost.c
Constant Summary collapse
- VERSION =
"1.0.1"
Class Method Summary collapse
Class Method Details
.coreloc_enable ⇒ Object
12 13 14 15 16 17 18 |
# File 'ext/lost/lost.c', line 12 VALUE coreloc_enable(VALUE r_self) { if(int_coreloc_enable()) { return Qtrue; } return Qfalse; } |
.current_position ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'ext/lost/lost.c', line 20 VALUE coreloc_pos(VALUE r_self) { double lat, log; int_coreloc_get(&lat, &log); return rb_ary_new3(2, rb_float_new(lat), rb_float_new(log)); } |