Class: RoadForest::Augment::Augmentation
- Inherits:
-
Object
- Object
- RoadForest::Augment::Augmentation
- Defined in:
- lib/roadforest/augment/augmentation.rb
Direct Known Subclasses
RoadForest::Augment::Affordance::Links, RoadForest::Augment::Affordance::PayloadAugmentation, RoadForest::Augment::Affordance::Remove
Class Method Summary collapse
- .object_follows(other) ⇒ Object
- .object_precedes(other) ⇒ Object
- .register_for_objects ⇒ Object
- .register_for_subjects ⇒ Object
- .subject_follows(other) ⇒ Object
- .subject_precedes(other) ⇒ Object
Instance Method Summary collapse
- #canonical_uri ⇒ Object
-
#initialize(augmenter) ⇒ Augmentation
constructor
A new instance of Augmentation.
- #router ⇒ Object
Constructor Details
#initialize(augmenter) ⇒ Augmentation
Returns a new instance of Augmentation.
31 32 33 |
# File 'lib/roadforest/augment/augmentation.rb', line 31 def initialize(augmenter) @augmenter = augmenter end |
Class Method Details
.object_follows(other) ⇒ Object
26 27 28 |
# File 'lib/roadforest/augment/augmentation.rb', line 26 def object_follows(other) Augmenter.object_augmentations_registry.seq(other, self.name) end |
.object_precedes(other) ⇒ Object
22 23 24 |
# File 'lib/roadforest/augment/augmentation.rb', line 22 def object_precedes(other) Augmenter.object_augmentations_registry.seq(self.name, other) end |
.register_for_objects ⇒ Object
18 19 20 |
# File 'lib/roadforest/augment/augmentation.rb', line 18 def register_for_objects Augmenter.object_augmentations_registry.add(self.name, self) end |
.register_for_subjects ⇒ Object
6 7 8 |
# File 'lib/roadforest/augment/augmentation.rb', line 6 def register_for_subjects Augmenter.subject_augmentations_registry.add(self.name, self) end |
.subject_follows(other) ⇒ Object
14 15 16 |
# File 'lib/roadforest/augment/augmentation.rb', line 14 def subject_follows(other) Augmenter.subject_augmentations_registry.seq(other, self.name) end |
.subject_precedes(other) ⇒ Object
10 11 12 |
# File 'lib/roadforest/augment/augmentation.rb', line 10 def subject_precedes(other) Augmenter.subject_augmentations_registry.seq(self.name, other) end |
Instance Method Details
#canonical_uri ⇒ Object
35 36 37 |
# File 'lib/roadforest/augment/augmentation.rb', line 35 def canonical_uri @augmenter.canonical_uri end |
#router ⇒ Object
39 40 41 |
# File 'lib/roadforest/augment/augmentation.rb', line 39 def router @augmenter.router end |