Class: SorbetView::Configuration

Inherits:
T::Struct
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/sorbet_view/configuration.rb

Class Method Summary collapse

Class Method Details

.loadObject



25
26
27
28
29
30
31
32
33
# File 'lib/sorbet_view/configuration.rb', line 25

def load
  path = File.join(Dir.pwd, SorbetView::CONFIG_FILE_NAME)
  hash = if File.exist?(path)
    Psych.safe_load_file(path) || {}
  else
    {}
  end
  from_hash(hash)
end