Class: PROIEL::RelationTagDefinition

Inherits:
GenericTagDefinition show all
Defined in:
lib/proiel/annotation_schema.rb

Overview

Definition of a relation tag.

Instance Attribute Summary collapse

Attributes inherited from GenericTagDefinition

#summary

Instance Method Summary collapse

Constructor Details

#initialize(summary, primary, secondary) ⇒ RelationTagDefinition

Returns a new instance of RelationTagDefinition.



109
110
111
112
113
114
# File 'lib/proiel/annotation_schema.rb', line 109

def initialize(summary, primary, secondary)
  super(summary)

  @primary = primary
  @secondary = secondary
end

Instance Attribute Details

#primaryObject (readonly)

Returns the value of attribute primary.



106
107
108
# File 'lib/proiel/annotation_schema.rb', line 106

def primary
  @primary
end

#secondaryObject (readonly)

Returns the value of attribute secondary.



107
108
109
# File 'lib/proiel/annotation_schema.rb', line 107

def secondary
  @secondary
end

Instance Method Details

#==(o) ⇒ Object

Tests equality of two tag definitions.



117
118
119
# File 'lib/proiel/annotation_schema.rb', line 117

def ==(o)
  @summary == o.summary and @primary == o.primary and @secondary == o.secondary
end