Class: Duxml::ErrorClass

Inherits:
ChangeClass show all
Includes:
Error
Defined in:
lib/duxml/meta/history/error.rb

Overview

do not use except to subclass

Direct Known Subclasses

QualifyErrorClass, ValidateErrorClass

Constant Summary

Constants included from Duxml

DITA_GRAMMAR

Constants included from Meta

Meta::FILE_EXT

Instance Attribute Summary

Attributes inherited from ChangeClass

#time_stamp

Attributes inherited from PatternClass

#subject

Attributes included from Duxml

#doc, #file, #meta

Attributes included from Saxer

#io

Instance Method Summary collapse

Methods included from Error

#error?

Methods included from Change

#<=>, #abstract?, #description, #line

Methods included from Pattern

#<=>, #abstract?, #concrete?, #description, #name, #object, #relationship, #simple_name

Methods included from Duxml

#create, #load, #log, #relaxng, #save, #validate

Methods included from Meta

#grammar=, meta_path, xml

Methods included from Saxer

#sax

Constructor Details

#initialize(_rule, _change_or_pattern) ⇒ ErrorClass

Returns a new instance of ErrorClass.

Parameters:

  • _rule (Rule)

    rule that was violated

  • _change_or_pattern (ChangeClass, PatternClass)

    can be triggered by a change or a pattern found in a static document



18
19
20
21
# File 'lib/duxml/meta/history/error.rb', line 18

def initialize(_rule, _change_or_pattern)
  super(_rule)
  @object = _change_or_pattern
end