Class: Basilik::Snapshot

Inherits:
Object
  • Object
show all
Defined in:
lib/basilik/snapshot.rb

Defined Under Namespace

Classes: Node

Instance Method Summary collapse

Constructor Details

#initialize(map) ⇒ Snapshot

Returns a new instance of Snapshot.



69
70
71
72
73
# File 'lib/basilik/snapshot.rb', line 69

def initialize( map )
  @map = map
  @root = Node.new( 'root' )
  build( @map, @root )
end

Instance Method Details

#dumpObject



79
80
81
# File 'lib/basilik/snapshot.rb', line 79

def dump
  @root.dump
end

#to_mapObject



75
76
77
# File 'lib/basilik/snapshot.rb', line 75

def to_map
  @root.to_map.root
end