提交 6cc29ab6 编写于 作者: S Santiago Pastorino 提交者: Xavier Noria

Implemented getbyte as an aliased method and RDoc added

Signed-off-by: NXavier Noria <fxn@hashref.com>
上级 f61d923d
......@@ -28,9 +28,8 @@ def ord
self[0]
end unless method_defined?(:ord)
def getbyte(index)
self[index]
end unless method_defined?(:getbyte)
# +getbyte+ backport from Ruby 1.9
alias_method :getbyte, :[] unless method_defined?(:getbyte)
# Form can be either :utc (default) or :local.
def to_time(form = :utc)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册