Class: GraphViz::Parser::Context
- Inherits:
-
Object
- Object
- GraphViz::Parser::Context
- Defined in:
- lib/graphviz/parser.rb
Instance Method Summary collapse
- #edges ⇒ Object
- #graph ⇒ Object
- #graph=(g) ⇒ Object
-
#initialize ⇒ Context
constructor
A new instance of Context.
- #nodes ⇒ Object
- #options ⇒ Object
- #options=(o) ⇒ Object
Constructor Details
#initialize ⇒ Context
Returns a new instance of Context.
10 11 12 13 14 15 16 17 18 |
# File 'lib/graphviz/parser.rb', line 10 def initialize @graph = nil @nodes = {} @edges = [] @options = { :node => {}, :edge => {} } end |
Instance Method Details
#edges ⇒ Object
32 33 34 |
# File 'lib/graphviz/parser.rb', line 32 def edges @edges end |
#graph ⇒ Object
20 21 22 |
# File 'lib/graphviz/parser.rb', line 20 def graph @graph end |
#graph=(g) ⇒ Object
24 25 26 |
# File 'lib/graphviz/parser.rb', line 24 def graph=(g) @graph = g end |
#nodes ⇒ Object
28 29 30 |
# File 'lib/graphviz/parser.rb', line 28 def nodes @nodes end |
#options ⇒ Object
36 37 38 |
# File 'lib/graphviz/parser.rb', line 36 def @options end |
#options=(o) ⇒ Object
40 41 42 |
# File 'lib/graphviz/parser.rb', line 40 def (o) @options = o end |