lib/anyway/loaders.rb in runger_config-2.7.0 vs lib/anyway/loaders.rb in runger_config-3.0.0
- old
+ new
@@ -1,10 +1,8 @@
# frozen_string_literal: true
module Anyway
- using RubyNext
-
module Loaders
class Registry
attr_reader :registry
def initialize
@@ -53,10 +51,10 @@
def each(&block)
registry.each(&block)
end
- def freeze() = registry.freeze
+ def freeze = registry.freeze
private
def insert_at(index, id, handler)
raise ArgumentError, "Loader with ID #{id} has been already registered" unless find(id).nil?