Class: ONIX::TitleElement
- Defined in:
- lib/onix/descriptive_detail.rb
Instance Method Summary collapse
-
#level ⇒ Object
shortcuts.
-
#title ⇒ Object
:category: High level flatten title string.
Methods inherited from SubsetDSL
_ancestor_registered_scopes, _ancestors_registered_elements, ancestor_registered_scopes, ancestors_registered_elements, element, elements, get_class, #initialize, #parse, ref_to_short, registered_elements, registered_scopes, scope, short_to_ref, #unsupported
Methods inherited from Subset
parse, #parse, tag_match, #tag_match, #unsupported
Constructor Details
This class inherits a constructor from ONIX::SubsetDSL
Instance Method Details
#level ⇒ Object
shortcuts
17 18 19 |
# File 'lib/onix/descriptive_detail.rb', line 17 def level @title_element_level end |
#title ⇒ Object
:category: High level flatten title string
23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/onix/descriptive_detail.rb', line 23 def title if @title_text @title_text else if @title_without_prefix if @title_prefix "#{@title_prefix} #{@title_without_prefix}" else @title_without_prefix end end end end |