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.


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

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

  @primary = primary
  @secondary = secondary
end

Instance Attribute Details

#primaryObject (readonly)

Returns the value of attribute primary


113
114
115
# File 'lib/proiel/annotation_schema.rb', line 113

def primary
  @primary
end

#secondaryObject (readonly)

Returns the value of attribute secondary


114
115
116
# File 'lib/proiel/annotation_schema.rb', line 114

def secondary
  @secondary
end

Instance Method Details

#==(o) ⇒ Object

Tests equality of two tag definitions.


124
125
126
# File 'lib/proiel/annotation_schema.rb', line 124

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