提交 c389b832 编写于 作者: C Cheah Chu Yeow

Grammar fixes for Object#in? documentation.

上级 783007a8
class Object
# Returns true if this object is included in the argument. Argument must be
# any object which respond to +#include?+. Usage:
# any object which responds to +#include?+. Usage:
#
# characters = ["Konata", "Kagami", "Tsukasa"]
# "Konata".in?(characters) # => true
#
# This will throw an ArgumentError if the supplied argument doesnt not respond
# This will throw an ArgumentError if the argument doesn't respond
# to +#include?+.
def in?(another_object)
another_object.include?(self)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册