Class: Phenomenal::Requirement

Inherits:
Relationship show all
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

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_featureObject



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_featureObject



8
9
# File 'lib/phenomenal/relationship/requirement.rb', line 8

def deactivate_feature
end