Module: Dry::Ability::RuleInterface
- Included in:
- Rule, Dry::Ability::Rule::Or
- Defined in:
- lib/dry/ability/rule_interface.rb
Instance Method Summary collapse
- #[](account, object) ⇒ Object
- #attributes_for(account) ⇒ Object
- #call(account, object) ⇒ Object
- #scope_for(account) ⇒ Object
- #|(other) ⇒ Object
Instance Method Details
#[](account, object) ⇒ Object
10 11 12 |
# File 'lib/dry/ability/rule_interface.rb', line 10 def [](account, object) call(account, object) end |
#attributes_for(account) ⇒ Object
18 19 20 |
# File 'lib/dry/ability/rule_interface.rb', line 18 def attributes_for(account) raise NotImplementedError end |
#call(account, object) ⇒ Object
6 7 8 |
# File 'lib/dry/ability/rule_interface.rb', line 6 def call(account, object) raise NotImplementedError end |
#scope_for(account) ⇒ Object
22 23 24 |
# File 'lib/dry/ability/rule_interface.rb', line 22 def scope_for(account) raise NotImplementedError end |
#|(other) ⇒ Object
14 15 16 |
# File 'lib/dry/ability/rule_interface.rb', line 14 def |(other) raise NotImplementedError end |