Class: Authorization::Reader::DSLReader::DSLMethods

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

Overview

DSL methods

Instance Method Summary collapse

Constructor Details

#initialize(parent) ⇒ DSLMethods

:nodoc:



77
78
79
# File 'lib/reader.rb', line 77

def initialize (parent)
  @parent = parent
end

Instance Method Details

#authorization(&block) ⇒ Object



89
90
91
# File 'lib/reader.rb', line 89

def authorization (&block)
  @parent.auth_rules_reader.instance_eval(&block)
end

#contexts(&block) ⇒ Object



85
86
87
# File 'lib/reader.rb', line 85

def contexts (&block)
  # Not implemented
end

#privileges(&block) ⇒ Object



81
82
83
# File 'lib/reader.rb', line 81

def privileges (&block)
  @parent.privileges_reader.instance_eval(&block)
end