lib/praxis/config_hash.rb in praxis-2.0.pre.18 vs lib/praxis/config_hash.rb in praxis-2.0.pre.19
- old
+ new
@@ -1,6 +1,7 @@
# frozen_string_literal: true
+
# TODO: move to Praxis proper...it's not used here
module Praxis
class ConfigHash < BasicObject
attr_reader :hash
@@ -20,10 +21,10 @@
def respond_to_missing?(_method_name, _include_private = false)
true
end
- def method_missing(name, value, *rest, &block) # rubocop:disable Style/MethodMissing
+ def method_missing(name, value, *rest, &block)
if (existing = @hash[name])
if block
existing << [value, block]
else
existing << value