Module: Dry::Ability::RuleInterface

Included in:
Rule, Dry::Ability::Rule::Or
Defined in:
lib/dry/ability/rule_interface.rb

Instance Method Summary collapse

Instance Method Details

#[](account, object) ⇒ Object



10
11
12
# File 'lib/dry/ability/rule_interface.rb', line 10

def [](, object)
  call(, object)
end

#attributes_for(account) ⇒ Object

Raises:

  • (NotImplementedError)


18
19
20
# File 'lib/dry/ability/rule_interface.rb', line 18

def attributes_for()
  raise NotImplementedError
end

#call(account, object) ⇒ Object

Raises:

  • (NotImplementedError)


6
7
8
# File 'lib/dry/ability/rule_interface.rb', line 6

def call(, object)
  raise NotImplementedError
end

#scope_for(account) ⇒ Object

Raises:

  • (NotImplementedError)


22
23
24
# File 'lib/dry/ability/rule_interface.rb', line 22

def scope_for()
  raise NotImplementedError
end

#|(other) ⇒ Object

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/dry/ability/rule_interface.rb', line 14

def |(other)
  raise NotImplementedError
end