summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-array-ext/src/array.c
diff options
context:
space:
mode:
authorSeba Gamboa <[email protected]>2015-10-14 14:37:47 -0300
committerSeba Gamboa <[email protected]>2015-10-20 12:16:47 -0300
commit5cdcce8dbddd94ecb9503a0a1d47370c4ef97177 (patch)
tree07dae36bc4e2762a8d420fbea2e67b4a087ea260 /mrbgems/mruby-array-ext/src/array.c
parent84b70886cd9827593810264bf1f068044d5c6986 (diff)
downloadmruby-5cdcce8dbddd94ecb9503a0a1d47370c4ef97177.tar.gz
mruby-5cdcce8dbddd94ecb9503a0a1d47370c4ef97177.zip
Mark core gems with mrbgem tag
Diffstat (limited to 'mrbgems/mruby-array-ext/src/array.c')
-rw-r--r--mrbgems/mruby-array-ext/src/array.c19
1 files changed, 13 insertions, 6 deletions
diff --git a/mrbgems/mruby-array-ext/src/array.c b/mrbgems/mruby-array-ext/src/array.c
index d69f0ac44..79dadbee5 100644
--- a/mrbgems/mruby-array-ext/src/array.c
+++ b/mrbgems/mruby-array-ext/src/array.c
@@ -4,7 +4,7 @@
#include "mruby/range.h"
#include "mruby/hash.h"
-/*
+/**
* call-seq:
* ary.assoc(obj) -> new_ary or nil
*
@@ -22,8 +22,9 @@
* a = [ s1, s2, s3 ]
* a.assoc("letters") #=> [ "letters", "a", "b", "c" ]
* a.assoc("foo") #=> nil
+ *
+ * @mrbgem mruby-array-ext
*/
-
static mrb_value
mrb_ary_assoc(mrb_state *mrb, mrb_value ary)
{
@@ -73,7 +74,7 @@ mrb_ary_rassoc(mrb_state *mrb, mrb_value ary)
return mrb_nil_value();
}
-/*
+/**
* call-seq:
* ary.at(index) -> obj or nil
*
@@ -84,8 +85,9 @@ mrb_ary_rassoc(mrb_state *mrb, mrb_value ary)
* a = [ "a", "b", "c", "d", "e" ]
* a.at(0) #=> "a"
* a.at(-1) #=> "e"
+ *
+ * @mrbgem mruby-array-ext
*/
-
static mrb_value
mrb_ary_at(mrb_state *mrb, mrb_value ary)
{
@@ -95,6 +97,10 @@ mrb_ary_at(mrb_state *mrb, mrb_value ary)
return mrb_ary_entry(ary, pos);
}
+/**
+ *
+ * @mrbgem mruby-array-ext
+ */
static mrb_value
mrb_ary_values_at(mrb_state *mrb, mrb_value self)
{
@@ -106,7 +112,7 @@ mrb_ary_values_at(mrb_state *mrb, mrb_value self)
return mrb_get_values_at(mrb, self, RARRAY_LEN(self), argc, argv, mrb_ary_ref);
}
-/*
+/**
* call-seq:
* ary.to_h -> Hash
*
@@ -115,8 +121,9 @@ mrb_ary_values_at(mrb_state *mrb, mrb_value self)
*
* [[:foo, :bar], [1, 2]].to_h
* # => {:foo => :bar, 1 => 2}
+ *
+ * @mrbgem mruby-array-ext
*/
-
static mrb_value
mrb_ary_to_h(mrb_state *mrb, mrb_value ary)
{