Class: Phenomenal::Requirement
- Inherits:
-
Relationship
- Object
- Relationship
- Phenomenal::Requirement
- Defined in:
- lib/phenomenal/relationship/requirement.rb
Overview
Define the behavior of the Requirement relationship
Instance Attribute Summary
Attributes inherited from Relationship
#feature, #manager, #source, #target
Instance Method Summary collapse
- #activate_context(context) ⇒ Object
- #activate_feature ⇒ Object
- #deactivate_context(context) ⇒ Object
- #deactivate_feature ⇒ Object
Methods inherited from Relationship
#==, #initialize, #refresh, #to_s
Constructor Details
This class inherits a constructor from Phenomenal::Relationship
Instance Method Details
#activate_context(context) ⇒ Object
11 12 13 14 15 |
# File 'lib/phenomenal/relationship/requirement.rb', line 11 def activate_context(context) if(source==context) check_requirement end end |
#activate_feature ⇒ Object
4 5 6 |
# File 'lib/phenomenal/relationship/requirement.rb', line 4 def activate_feature check_requirement end |
#deactivate_context(context) ⇒ Object
17 18 19 20 21 |
# File 'lib/phenomenal/relationship/requirement.rb', line 17 def deactivate_context(context) if(target==context) source.deactivate end end |
#deactivate_feature ⇒ Object
8 9 |
# File 'lib/phenomenal/relationship/requirement.rb', line 8 def deactivate_feature end |