| 1 | package UR::Doc::Section; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use UR; | ||
| 7 | our $VERSION = "0.46"; # UR $VERSION; | ||
| 8 | |||
| 9 | class UR::Doc::Section { | ||
| 10 | is => 'UR::Object', | ||
| 11 | has => [ | ||
| 12 | title => { | ||
| 13 | is => 'Text', | ||
| 14 | is_optional => 1, | ||
| 15 | }, | ||
| 16 | content => { | ||
| 17 | is => 'Text', | ||
| 18 | doc => 'pod content for this section', | ||
| 19 | }, | ||
| 20 | format => { | ||
| 21 | is => 'Text', | ||
| 22 | default_value => 'pod', | ||
| 23 | valid_values => ['html','pod','txt'], | ||
| 24 | }, | ||
| 25 | ], | ||
| 26 | }; |