lib/olivander.rb in five-two-nw-olivander-0.1.2.43 vs lib/olivander.rb in five-two-nw-olivander-0.1.2.44
- old
+ new
@@ -1,8 +1,12 @@
require 'olivander/version'
require 'olivander/engine'
require 'olivander/application_context'
require 'olivander/menus'
+require 'pathname'
module Olivander
- # Your code goes here...
+ # Root pathname to get the path of Olivander files like templates or dictionaries
+ def self.root
+ @root ||= Pathname.new(__dir__).freeze
+ end
end