Browse Source

fix hot constants listener

main
pvincent 2 months ago
parent
commit
9f63156a8a
  1. 2
      lib/hot/constants.rb
  2. 2
      lib/hot/live.rb

2
lib/hot/constants.rb

@ -59,7 +59,7 @@ module Hot
end
HOTENV.replace new_env
# LISTENERS.each_pair { |k, b| perform_change(k, b) }
LISTENERS.each_pair { |k, b| perform_change(k, b) }
end
def on_change(key, &block)

2
lib/hot/live.rb

@ -2,7 +2,7 @@ module Hot
# Hot Live constants
class Live
def initialize
puts 'initialized'
puts 'Hot Live constants initialized'
end
end
end
Loading…
Cancel
Save