Class: SurveillanceAuthority

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

Defined Under Namespace

Classes: Sanction

Class Method Summary collapse

Class Method Details

.config(klass, config) ⇒ Object



107
108
109
# File 'lib/surveillance_authority.rb', line 107

def self.config(klass, config) 
  klass.instance.config = config
end

.config_for(klass) ⇒ Object



111
112
113
# File 'lib/surveillance_authority.rb', line 111

def self.config_for(klass) 
  klass.instance.config
end

.observe(&block) ⇒ Object



115
116
117
# File 'lib/surveillance_authority.rb', line 115

def self.observe(&block)
  SurveillanceAuthority::Sanction.instance.instance_eval(&block)
end