kch-dominion 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dominion/domain_name.rb +1 -1
- metadata +1 -1
data/lib/dominion/domain_name.rb
CHANGED
@@ -8,7 +8,7 @@ module Dominion
|
|
8
8
|
# returns the current rule list or takes a new rule list; rules must be DomainSuffixRule instances.
|
9
9
|
def self.rules(rules = nil)
|
10
10
|
@rules = rules if rules
|
11
|
-
@rules
|
11
|
+
@rules || (superclass.rules if superclass.respond_to?(:rules))
|
12
12
|
end
|
13
13
|
|
14
14
|
# takes the path to a rule file in the format defined in http://publicsuffix.org/list/
|