Permalink
Browse files

@return, not @returns

  • Loading branch information...
1 parent e0edf82 commit b0a67df4705fc2b4f843b3a1927034ab6cab217f @weppos committed Mar 9, 2011
Showing with 5 additions and 4 deletions.
  1. +1 −1 lib/whois/answer.rb
  2. +1 −1 lib/whois/answer/parser.rb
  3. +3 −2 lib/whois/answer/parser/example.rb
View
@@ -45,7 +45,7 @@ def initialize(server, parts)
# Overrides the default implementation to add support
# for {Parser::PROPERTIES} and {Parser::METHODS}.
#
- # @returns [Boolean]
+ # @return [Boolean]
def respond_to?(symbol, include_private = false)
super || Parser::PROPERTIES.include?(symbol) || Parser::METHODS.include?(symbol)
end
@@ -154,7 +154,7 @@ def initialize(answer)
# Overrides the default implementation to add support
# for {PROPERTIES} and {METHODS}.
#
- # @returns [Boolean]
+ # @return [Boolean]
def respond_to?(symbol, include_private = false)
super || PROPERTIES.include?(symbol) || METHODS.include?(symbol)
end
@@ -156,16 +156,17 @@ class WhoisExampleCom < Base
# extracted from the registry answer.
#
# @example
- #
# nameserver
# # => []
+ #
+ # @example
# nameserver
# # => [
# # #<struct Whois::Answer::Nameserver name="ns1.google.com">,
# # #<struct Whois::Answer::Nameserver name="ns2.google.com">
# # ]
#
- # @returns [Array<Whois::Answer::Nameserver>]
+ # @return [Array<Whois::Answer::Nameserver>]
property_supported :nameservers do
[]
end

0 comments on commit b0a67df

Please sign in to comment.