Class: Newsmlg2::Types::BlockType

Inherits:
NarModel
  • Object
show all
Includes:
Base::CommonPowerAttributes, Base::I18NAttributes
Defined in:
lib/newsmlg2/types/block_types.rb

Overview

Natural-language content with minimal markup and line breaks. Mixed content.

Instance Method Summary collapse

Methods included from Base::I18NAttributes

included

Methods included from Base::CommonPowerAttributes

included

Methods inherited from NarModel

lutaml_default_register, xml_attributes, xml_content, xml_element, xml_lang_attribute, xml_root_name

Instance Method Details

#to_sObject



39
40
41
# File 'lib/newsmlg2/types/block_types.rb', line 39

def to_s
  Array(text).join.strip
end