class Ronflex::Rule

def initialize(type, &block)

Other tags:
    Yieldparam: request - The request being evaluated (e.g., an HTTP request object).
    Yieldparam: model - The model being evaluated (e.g., a user or role).

Other tags:
    Yield: - The block defining the rule's logic. It is executed to determine

Parameters:
  • type (Symbol, String) -- The type of model this rule applies to.
def initialize(type, &block)
  @type = type
  @rule = block
end