lib/devdnsd/rule.rb in devdnsd-1.0.0 vs lib/devdnsd/rule.rb in devdnsd-1.0.1
- old
+ new
@@ -71,11 +71,11 @@
self.block.present?
end
# Matches a hostname to the rule.
#
- # @param [String] The hostname to match.
+ # @param hostname [String] The hostname to match.
# @return [MatchData|Boolean|Nil] Return `true` or MatchData (if the pattern is a regexp) if the rule matches, `false` or `nil` otherwise.
def match_host(hostname)
self.is_regexp? ? self.match.match(hostname) : (self.match == hostname)
end
@@ -125,6 +125,6 @@
rescue NameError
raise(DevDNSd::Errors::InvalidRule.new("Invalid resource class #{symbol}."))
end
end
end
-end
\ No newline at end of file
+end