Class: Authorization::Reader::DSLReader::DSLMethods
- Inherits:
-
Object
- Object
- Authorization::Reader::DSLReader::DSLMethods
- Defined in:
- lib/reader.rb
Overview
DSL methods
Instance Method Summary collapse
- #authorization(&block) ⇒ Object
- #contexts(&block) ⇒ Object
-
#initialize(parent) ⇒ DSLMethods
constructor
:nodoc:.
- #privileges(&block) ⇒ Object
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 (&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 |