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

Instance Attribute Summary

Attributes inherited from ChangeClass

#time_stamp

Attributes inherited from PatternClass

#subject

Attributes included from Duxml

#doc

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, #xml

Methods included from Duxml

#load, #log, #save, #validate

Methods included from Saxer

#sax

Constructor Details

#initialize(_rule, _change_or_pattern) ⇒ ErrorClass

Returns a new instance of ErrorClass.

Parameters:

  • rule that was violated

  • 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