Changeset 104a4eb for perl/lib/BarnOwl.pm
- Timestamp:
- Feb 23, 2013, 7:28:42 PM (12 years ago)
- Branches:
- master, release-1.10
- Children:
- 736835d, f3ac1ae
- Parents:
- 6a8b519
- git-author:
- David Benjamin <davidben@mit.edu> (02/23/13 17:58:07)
- git-committer:
- David Benjamin <davidben@mit.edu> (02/23/13 19:28:42)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perl/lib/BarnOwl.pm
r4953c44 r104a4eb 428 428 =back 429 429 430 In addition, new_variable_string optionally accepts a string validsettings 431 parameter, in case people want to set it to "<path>". 432 430 433 =cut 431 434 … … 464 467 my $storage = defined($args->{default}) ? $args->{default} : ""; 465 468 BarnOwl::new_variable_full($name, { 469 # Allow people to override this one if they /reaaally/ want to for 470 # some reason. Though we still reserve the right to interpret this 471 # value in interesting ways for tab-completion purposes. 472 validsettings => "<string>", 466 473 %{$args}, 467 474 get_tostring => sub { $storage }, 468 475 set_fromstring => sub { $storage = $_[0]; }, 469 validsettings => "<string>",470 476 takes_on_off => 0, 471 477 });
Note: See TracChangeset
for help on using the changeset viewer.