Class: Twb::Util::Graphedges
- Inherits:
-
Object
- Object
- Twb::Util::Graphedges
- Defined in:
- lib/twb/util/graphedges.rb
Instance Attribute Summary collapse
-
#edges ⇒ Object
Returns the value of attribute edges.
-
#root ⇒ Object
readonly
Returns the value of attribute root.
Instance Method Summary collapse
-
#initialize(root = nil) ⇒ Graphedges
constructor
A new instance of Graphedges.
- #to_s ⇒ Object
Constructor Details
Instance Attribute Details
#edges ⇒ Object
Returns the value of attribute edges.
24 25 26 |
# File 'lib/twb/util/graphedges.rb', line 24 def edges @edges end |
#root ⇒ Object (readonly)
Returns the value of attribute root.
23 24 25 |
# File 'lib/twb/util/graphedges.rb', line 23 def root @root end |
Instance Method Details
#to_s ⇒ Object
31 32 33 |
# File 'lib/twb/util/graphedges.rb', line 31 def to_s "Root:'%s' edges::%s::" % [@root.to_s, @edges.to_s] end |