Class: Cmap::PropositionsToGraph
- Inherits:
-
Object
- Object
- Cmap::PropositionsToGraph
- Defined in:
- lib/cmap/propositions_to_graph.rb
Instance Attribute Summary collapse
-
#propositions_path ⇒ Object
readonly
Returns the value of attribute propositions_path.
Instance Method Summary collapse
- #graph ⇒ Object
-
#initialize(propositions_path) ⇒ PropositionsToGraph
constructor
A new instance of PropositionsToGraph.
Constructor Details
#initialize(propositions_path) ⇒ PropositionsToGraph
Returns a new instance of PropositionsToGraph.
5 6 7 8 |
# File 'lib/cmap/propositions_to_graph.rb', line 5 def initialize(propositions_path) @propositions_path = propositions_path @vertices = [] end |
Instance Attribute Details
#propositions_path ⇒ Object (readonly)
Returns the value of attribute propositions_path.
3 4 5 |
# File 'lib/cmap/propositions_to_graph.rb', line 3 def propositions_path @propositions_path end |
Instance Method Details
#graph ⇒ Object
10 11 12 |
# File 'lib/cmap/propositions_to_graph.rb', line 10 def graph DirectedGraph::Graph.new(edges) end |