Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix invalid YARD params

  • Loading branch information...
commit 9b138f89b21340ff92b5b6ee7fbf0ff43209350e 1 parent d180c3b
@weppos authored
Showing with 9 additions and 3 deletions.
  1. +8 −2 lib/whois/record.rb
  2. +1 −1  lib/whois/record/parser.rb
View
10 lib/whois/record.rb
@@ -39,6 +39,7 @@ def initialize(server, parts)
# for {Parser::PROPERTIES} and {Parser::METHODS}.
#
# @return [Boolean]
+ #
def respond_to?(symbol, include_private = false)
super || Parser::PROPERTIES.include?(symbol) || Parser::METHODS.include?(symbol)
end
@@ -46,6 +47,7 @@ def respond_to?(symbol, include_private = false)
# Returns a String representation of this record.
#
# @return [String] The record content.
+ #
def to_s
content.to_s
end
@@ -53,6 +55,7 @@ def to_s
# Returns a human-readable representation of this record.
#
# @return [String] The result of {#inspect} on content.
+ #
def inspect
content.inspect
end
@@ -62,6 +65,7 @@ def inspect
#
# @param [Whois::Record] other The record to compare.
# @return [Boolean]
+ #
def ==(other)
if equal?(other)
true
@@ -78,7 +82,7 @@ def ==(other)
# Invokes {#match} on record {#content}
# and returns the match as <tt>MatchData</tt> or <tt>nil</tt>.
#
- # @param [Regexp, String] match
+ # @param [Regexp, String] pattern The regex pattern to match.
# @return [MatchData] If pattern matches #content
# @return [nil] If pattern doesn't match #content
#
@@ -91,7 +95,7 @@ def match(pattern)
# Invokes {#match} and returns <tt>true</tt> if <tt>pattern</tt>
# matches {#content}, <tt>false</tt> otherwise.
#
- # @param [Regexp, String] match
+ # @param [Regexp, String] pattern The regex pattern to match.
# @return [Boolean]
#
# @see #match
@@ -122,6 +126,7 @@ def content
# Lazy-loads and returns the parser proxy for current record.
#
# @return [Whois::Record::Parser]
+ #
def parser
@parser ||= Parser.new(self)
end
@@ -145,6 +150,7 @@ def property_supported?(property)
# along with corresponding values.
#
# @return [{ Symbol => Object }]
+ #
def properties
hash = {}
Parser::PROPERTIES.each { |property| hash[property] = send(property) }
View
2  lib/whois/record/parser.rb
@@ -136,7 +136,7 @@ def self.autoload(name)
# Initializes and return a new parser from +record+.
#
- # @param [Whois::Record]
+ # @param [Whois::Record] record
#
def initialize(record)
@record = record
Please sign in to comment.
Something went wrong with that request. Please try again.