Class: PermissionSettings::Patcher

Inherits:
Object
  • Object
show all
Defined in:
lib/permission_settings/patcher.rb

Overview

Class that defines core functionality

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(klass) ⇒ Patcher

Returns a new instance of Patcher.



13
14
15
# File 'lib/permission_settings/patcher.rb', line 13

def initialize(klass)
  @klass = klass
end

Instance Attribute Details

#klassObject (readonly)

Returns the value of attribute klass.



11
12
13
# File 'lib/permission_settings/patcher.rb', line 11

def klass
  @klass
end

Class Method Details

.call(klass) ⇒ Object



17
18
19
# File 'lib/permission_settings/patcher.rb', line 17

def self.call(klass)
  new(klass).call
end

Instance Method Details

#callObject



21
22
23
24
25
26
# File 'lib/permission_settings/patcher.rb', line 21

def call
  check_permissions_dir
  setup_settings_interface
  setup_instance_verification
  setup_permissions_method
end