class Xommelier::Xml::Element::Structure::Attribute

Constants

DEFAULTS

Public Instance Methods

attribute_name() click to toggle source
# File lib/xommelier/xml/element/structure/property.rb, line 140
def attribute_name
  @attribute_name ||= if xml?
                        "xml:#{name}"
                      else
                        options.delete(:as) { name }.to_s
                      end
end
node_type() click to toggle source
# File lib/xommelier/xml/element/structure/property.rb, line 128
def node_type
  :attribute
end
required?() click to toggle source
# File lib/xommelier/xml/element/structure/property.rb, line 132
def required?
  options[:required]
end
xml?() click to toggle source
# File lib/xommelier/xml/element/structure/property.rb, line 136
def xml?
  options[:xml]
end