Module: Banalize::DSL

Defined in:
lib/banalize.rb

Constant Summary

@@policies =
[]

Instance Method Summary (collapse)

Instance Method Details

- (Object) banalizer(my_name, &block)



40
41
42
43
44
# File 'lib/banalize.rb', line 40

def banalizer my_name, &block
  klass = Banalize::Registry.register(my_name, &block)
  @@policies  << klass
  klass
end

- (Object) policies



46
47
48
# File 'lib/banalize.rb', line 46

def policies
  @@policies
end