542914f161976125459c5ffdd7cd6fd36c65d46c
[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.1 2003-10-14 16:05:22 rich Exp $
4  *)
5
6 open Perl
7
8 class net_google_cache sv =
9
10 object (self)
11
12   method key =
13     string_of_sv (call_method sv "key" [])
14   method set_key v =
15     call_method_void sv "key" [sv_of_string v]
16   method url =
17     string_of_sv (call_method sv "url" [])
18   method set_url v =
19     call_method_void sv "url" [sv_of_string v]
20   method get =
21     let sv = call_method sv "get" [] in
22     if sv_is_undef sv then raise Not_found;
23     string_of_sv sv
24
25 end
26
27 (* let new_ = ... *)