Module: Saxon::OccurrenceIndicator
- Defined in:
- lib/saxon/occurrence_indicator.rb
Overview
Provides simple access to Saxon’s OccurrenceIndicator constants, for use in declaring variable types
Class Method Summary collapse
- .indicator_names ⇒ Object
- .one ⇒ Object
- .one_or_more ⇒ Object
- .zero ⇒ Object
- .zero_or_more ⇒ Object
- .zero_or_one ⇒ Object
Class Method Details
.indicator_names ⇒ Object
28 29 30 |
# File 'lib/saxon/occurrence_indicator.rb', line 28 def indicator_names @indicator_names ||= (public_methods(false) - Object.public_methods - [:indicator_names]) end |
.one ⇒ Object
8 9 10 |
# File 'lib/saxon/occurrence_indicator.rb', line 8 def one @one ||= Saxon::S9API::OccurrenceIndicator::ONE end |
.one_or_more ⇒ Object
12 13 14 |
# File 'lib/saxon/occurrence_indicator.rb', line 12 def one_or_more @one_or_more ||= Saxon::S9API::OccurrenceIndicator::ONE_OR_MORE end |
.zero ⇒ Object
16 17 18 |
# File 'lib/saxon/occurrence_indicator.rb', line 16 def zero @zero ||= Saxon::S9API::OccurrenceIndicator::ZERO end |