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 end
HOTENV.replace new_env HOTENV.replace new_env
# LISTENERS.each_pair { |k, b| perform_change(k, b) }
LISTENERS.each_pair { |k, b| perform_change(k, b) }
end end
def on_change(key, &block) def on_change(key, &block)

2
lib/hot/live.rb

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