Class: Gort::AllowRule

Inherits:
PathRule show all
Defined in:
lib/gort/allow_rule.rb

Overview

Allow rule.

Instance Attribute Summary

Attributes inherited from Rule

#name, #value

Instance Method Summary collapse

Methods inherited from PathRule

#inspect, #match, #pretty_print, #valid?

Methods inherited from Rule

#inspect, #pretty_print

Constructor Details

#initialize(value) ⇒ AllowRule

Returns a new instance of AllowRule.

Parameters:

  • value (String)

    the path pattern to allow.



9
10
11
# File 'lib/gort/allow_rule.rb', line 9

def initialize(value)
  super(:allow, value)
end