Class: Xommelier::Xml::Element::Structure::Text

Inherits:
Property
  • Object
show all
Defined in:
lib/xommelier/xml/element/structure/property.rb

Constant Summary collapse

DEFAULTS =
{
  type: String
}.freeze

Instance Attribute Summary

Attributes inherited from Property

#name, #options

Instance Method Summary collapse

Methods inherited from Property

#complex_type?, #default, #default?, #initialize, #inspect, #ns, #type, #writer

Constructor Details

This class inherits a constructor from Xommelier::Xml::Element::Structure::Property

Instance Method Details

#node_typeObject



154
155
156
# File 'lib/xommelier/xml/element/structure/property.rb', line 154

def node_type
  :text
end

#required?Boolean

Returns:



158
159
160
# File 'lib/xommelier/xml/element/structure/property.rb', line 158

def required?
  options[:required]
end