Class: RDG::Analysis::Context
- Inherits:
-
Object
- Object
- RDG::Analysis::Context
- Defined in:
- lib/rdg/analysis/context.rb
Instance Attribute Summary collapse
-
#equivalences ⇒ Object
readonly
Returns the value of attribute equivalences.
-
#graph ⇒ Object
readonly
Returns the value of attribute graph.
-
#registry ⇒ Object
readonly
Returns the value of attribute registry.
Instance Method Summary collapse
-
#initialize(graph = nil, equivalences = nil, registry = nil) ⇒ Context
constructor
A new instance of Context.
Constructor Details
#initialize(graph = nil, equivalences = nil, registry = nil) ⇒ Context
Returns a new instance of Context.
10 11 12 13 14 |
# File 'lib/rdg/analysis/context.rb', line 10 def initialize(graph = nil, equivalences = nil, registry = nil) @graph = graph || Graph::BidirectedAdjacencyGraph.new @equivalences = equivalences || Equivalences.new @registry = registry || Registry.new end |
Instance Attribute Details
#equivalences ⇒ Object (readonly)
Returns the value of attribute equivalences.
8 9 10 |
# File 'lib/rdg/analysis/context.rb', line 8 def equivalences @equivalences end |
#graph ⇒ Object (readonly)
Returns the value of attribute graph.
8 9 10 |
# File 'lib/rdg/analysis/context.rb', line 8 def graph @graph end |
#registry ⇒ Object (readonly)
Returns the value of attribute registry.
8 9 10 |
# File 'lib/rdg/analysis/context.rb', line 8 def registry @registry end |