Class: PROIEL::RelationTagDefinition
- Inherits:
-
GenericTagDefinition
- Object
- GenericTagDefinition
- PROIEL::RelationTagDefinition
- Defined in:
- lib/proiel/annotation_schema.rb
Overview
Definition of a relation tag.
Instance Attribute Summary collapse
-
#primary ⇒ Object
readonly
Returns the value of attribute primary.
-
#secondary ⇒ Object
readonly
Returns the value of attribute secondary.
Attributes inherited from GenericTagDefinition
Instance Method Summary collapse
-
#==(o) ⇒ Object
Tests equality of two tag definitions.
-
#initialize(summary, primary, secondary) ⇒ RelationTagDefinition
constructor
A new instance of RelationTagDefinition.
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
#primary ⇒ Object (readonly)
Returns the value of attribute primary.
113 114 115 |
# File 'lib/proiel/annotation_schema.rb', line 113 def primary @primary end |
#secondary ⇒ Object (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 |