Class: Bigbertha::Snapshot
- Inherits:
-
Object
- Object
- Bigbertha::Snapshot
- Defined in:
- lib/bigbertha/snapshot.rb
Defined Under Namespace
Classes: Node
Instance Method Summary collapse
- #dump ⇒ Object
-
#initialize(map) ⇒ Snapshot
constructor
A new instance of Snapshot.
- #to_map ⇒ Object
Constructor Details
#initialize(map) ⇒ Snapshot
Returns a new instance of Snapshot.
69 70 71 72 73 |
# File 'lib/bigbertha/snapshot.rb', line 69 def initialize( map ) @map = map @root = Node.new( 'root' ) build( @map, @root ) end |
Instance Method Details
#dump ⇒ Object
79 80 81 |
# File 'lib/bigbertha/snapshot.rb', line 79 def dump @root.dump end |
#to_map ⇒ Object
75 76 77 |
# File 'lib/bigbertha/snapshot.rb', line 75 def to_map @root.to_map.root end |