Rev | Line | |
---|
[347] | 1 | # rm::composition::content::navigation
|
---|
| 2 | # navigation module
|
---|
| 3 | # http://www.openehr.org/uml/release-1.0.1/Browsable/_9_0_76d0249_1109264528523_312165_346Report.html
|
---|
| 4 | # refs #56
|
---|
| 5 | include OpenEHR::RM::Composition::Content
|
---|
| 6 |
|
---|
| 7 | module OpenEHR
|
---|
| 8 | module RM
|
---|
| 9 | module Composition
|
---|
| 10 | module Content
|
---|
| 11 | module Navigation
|
---|
| 12 | class Section < ContentItem
|
---|
| 13 | attr_reader :items
|
---|
| 14 |
|
---|
| 15 | def initialize(args = { })
|
---|
| 16 | super(args)
|
---|
| 17 | self.items = args[:items]
|
---|
| 18 | end
|
---|
| 19 |
|
---|
| 20 | def items=(items)
|
---|
| 21 | if !items.nil? && items.empty?
|
---|
| 22 | raise ArgumentError, 'items should not be empty'
|
---|
| 23 | end
|
---|
| 24 | @items = items
|
---|
| 25 | end
|
---|
| 26 | end
|
---|
| 27 | end
|
---|
| 28 | end # end of Content
|
---|
| 29 | end # end of Composition
|
---|
| 30 | end # end of RM
|
---|
| 31 | end # end of OpenEHR
|
---|
Note:
See
TracBrowser
for help on using the repository browser.