Class: Gort::DisallowRule

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

Overview

Disallow 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) ⇒ DisallowRule

Returns a new instance of DisallowRule.

Parameters:

  • value (String)

    the path pattern to disallow.



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

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