lib/active_uxid/base.rb in active_uxid-5.0.1 vs lib/active_uxid/base.rb in active_uxid-5.0.2
- old
+ new
@@ -1,20 +1,18 @@
# frozen_string_literal: true
-module ActiveUxid
- class Base
+class ActiveUxid::Base
- def initialize
- @config = ActiveUxid.configuration
- end
+ def initialize
+ @config = ActiveUxid.configuration
+ end
- ActiveUxid.configuration.instance_variables.each do |setting|
- setting = setting.to_s.tr(':@', '')
- define_method(setting) { @config.send(setting) }
- end
+ ActiveUxid.configuration.instance_variables.each do |setting|
+ setting = setting.to_s.tr(':@', '')
+ define_method(setting) { @config.send(setting) }
+ end
- def encoding_base
- encoding_chars.length
- end
-
+ def encoding_base
+ encoding_chars.length
end
+
end