Class: Setup::ApplicationDictionary

Inherits:
Base
  • Object
show all
Includes:
Store
Defined in:
lib/pry-byetypo/setup/application_dictionary.rb

Constant Summary

Constants included from Store

Store::DEFAULT_STORE_PATH, Store::SEVEN_DAYS

Instance Method Summary collapse

Methods included from Store

#staled_store?, #store, #store_path

Methods inherited from Base

call, check

Constructor Details

#initialize(binding) ⇒ ApplicationDictionary

Returns a new instance of ApplicationDictionary.



12
13
14
# File 'lib/pry-byetypo/setup/application_dictionary.rb', line 12

def initialize(binding)
  @binding = binding
end

Instance Method Details

#callObject



16
17
18
19
20
# File 'lib/pry-byetypo/setup/application_dictionary.rb', line 16

def call
  Setup::Dictionary::ActiveRecord.initialize! if defined?(ActiveRecord)
ensure
  populate_store
end