Wrap grn_scan_info_set_op() and grn_scan_info_set_end() in ruby method