aboutsummaryrefslogtreecommitdiffstats
path: root/error.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-19 04:57:20 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-19 04:57:20 +0000
commitc0b3e84e0588e6b7cb895e635369a0aca8aa973b (patch)
tree374c40fdfac59c7b96b0c74aaaefb1d3d41284fc /error.c
parentec682918e1d5ecc129e0d953610747401635d9eb (diff)
downloadruby-c0b3e84e0588e6b7cb895e635369a0aca8aa973b.tar.gz
error.c: KeyError docs [ci skip]
* error.c (key_err_receiver, key_err_key): [DOC] documents of KeyError methods. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r--error.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/error.c b/error.c
index 68fe270937..2109936e72 100644
--- a/error.c
+++ b/error.c
@@ -1610,6 +1610,13 @@ rb_invalid_str(const char *str, const char *type)
rb_raise(rb_eArgError, "invalid value for %s: %+"PRIsVALUE, type, s);
}
+/*
+ * call-seq:
+ * key_error.receiver -> object
+ *
+ * Return the receiver associated with this KeyError exception.
+ */
+
static VALUE
key_err_receiver(VALUE self)
{
@@ -1620,6 +1627,13 @@ key_err_receiver(VALUE self)
rb_raise(rb_eArgError, "no receiver is available");
}
+/*
+ * call-seq:
+ * key_error.key -> object
+ *
+ * Return the key caused this KeyError exception.
+ */
+
static VALUE
key_err_key(VALUE self)
{