lib/zelkova.rb in zelkova-0.1.0 vs lib/zelkova.rb in zelkova-0.1.1
- old
+ new
@@ -5,6 +5,18 @@
require_relative "zelkova/graph"
module Zelkova
class Error < StandardError; end
+
+ @@graph = T.let(Zelkova::Graph.new, Zelkova::Graph)
+
+ class << self
+ extend T::Sig
+
+ sig { returns(Zelkova::Graph) }
+ def graph
+ # TODO: make this lazy when in development mode for speed
+ @@graph
+ end
+ end
end