Module: Xommelier::Xml::Element::Namespace

Extended by:
ActiveSupport::Concern
Included in:
Xommelier::Xml::Element
Defined in:
lib/xommelier/xml/element/namespace.rb

Defined Under Namespace

Modules: ClassMethods

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#schema_validation_errorsArray<Nokogiri::XML::SyntaxError> (readonly) Also known as: errors

Returns:

  • (Array<Nokogiri::XML::SyntaxError>)


61
62
63
# File 'lib/xommelier/xml/element/namespace.rb', line 61

def schema_validation_errors
  @schema_validation_errors
end

Instance Method Details

#valid?true, false

Returns:

  • (true, false)


55
56
57
58
# File 'lib/xommelier/xml/element/namespace.rb', line 55

def valid?
  validate
  schema_validation_errors.empty?
end