lib/permission_settings.rb in permission_settings-0.1.0 vs lib/permission_settings.rb in permission_settings-1.0.0
- old
+ new
@@ -1,8 +1,26 @@
# frozen_string_literal: true
+require 'byebug'
+
require_relative 'permission_settings/version'
+require_relative 'permission_settings/patcher'
+require_relative 'permission_settings/configuration'
+# Gem entrypoint
module PermissionSettings
- class Error < StandardError; end
- # Your code goes here...
+ class NotFoundError < StandardError; end
+
+ class << self
+ def included(klass)
+ PermissionSettings::Patcher.call(klass)
+ end
+
+ def configuration
+ @configuration ||= Configuration.new
+ end
+
+ def configure
+ yield(configuration)
+ end
+ end
end