079f9e5efbe0f4026d0cf14993b8cab7c86fc1d6
[perl4caml.git] / wrappers / pl_Net_Google_Spelling.ml
1 (** Wrapper around Perl [Net::Google::Spelling] class.
2   *
3   * Copyright (C) 2003 Merjis Ltd.
4   *
5   * $Id: pl_Net_Google_Spelling.ml,v 1.3 2003-10-16 13:41:07 rich Exp $
6   *)
7
8 open Perl
9
10 let _ = eval "use Net::Google::Spelling"
11
12 class net_google_spelling sv =
13
14 object (self)
15
16   method key =
17     string_of_sv (call_method sv "key" [])
18   method set_key v =
19     call_method_void sv "key" [sv_of_string v]
20   method phrase phrases =
21     string_of_sv (call_method sv "phrase" (List.map sv_of_string phrases))
22   method suggest =
23     string_of_sv (call_method sv "suggest" [])
24
25 end
26
27 (* let new_ = ... *)