Wrappers now automatically 'use' modules.
[perl4caml.git] / wrappers / pl_Net_Google_Cache.ml
1 (* Wrapper around Perl Net::Google::Cache class.
2  * Copyright (C) 2003 Merjis Ltd.
3  * $Id: pl_Net_Google_Cache.ml,v 1.2 2003-10-15 16:51:12 rich Exp $
4  *)
5
6 open Perl
7
8 let _ = eval "use Net::Google::Cache"
9
10 class net_google_cache sv =
11
12 object (self)
13
14   method key =
15     string_of_sv (call_method sv "key" [])
16   method set_key v =
17     call_method_void sv "key" [sv_of_string v]
18   method url =
19     string_of_sv (call_method sv "url" [])
20   method set_url v =
21     call_method_void sv "url" [sv_of_string v]
22   method get =
23     let sv = call_method sv "get" [] in
24     if sv_is_undef sv then raise Not_found;
25     string_of_sv sv
26
27 end
28
29 (* let new_ = ... *)