Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
e6ab9237
Commit
e6ab9237
authored
Mar 15, 2013
by
skandhas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename method
parent
59d33146
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
mrbgems/mruby-array-ext/src/array.c
mrbgems/mruby-array-ext/src/array.c
+2
-2
mrbgems/mruby-array-ext/test/array.rb
mrbgems/mruby-array-ext/test/array.rb
+1
-1
No files found.
mrbgems/mruby-array-ext/src/array.c
View file @
e6ab9237
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
*/
*/
static
mrb_value
static
mrb_value
mrb_ary_try_convert
(
mrb_state
*
mrb
,
mrb_value
self
)
mrb_ary_
s_
try_convert
(
mrb_state
*
mrb
,
mrb_value
self
)
{
{
mrb_value
ary
;
mrb_value
ary
;
...
@@ -127,7 +127,7 @@ mrb_mruby_array_ext_gem_init(mrb_state* mrb)
...
@@ -127,7 +127,7 @@ mrb_mruby_array_ext_gem_init(mrb_state* mrb)
{
{
struct
RClass
*
a
=
mrb
->
array_class
;
struct
RClass
*
a
=
mrb
->
array_class
;
mrb_define_class_method
(
mrb
,
a
,
"try_convert"
,
mrb_ary_try_convert
,
ARGS_REQ
(
1
));
mrb_define_class_method
(
mrb
,
a
,
"try_convert"
,
mrb_ary_
s_
try_convert
,
ARGS_REQ
(
1
));
mrb_define_method
(
mrb
,
a
,
"assoc"
,
mrb_ary_assoc
,
ARGS_REQ
(
1
));
mrb_define_method
(
mrb
,
a
,
"assoc"
,
mrb_ary_assoc
,
ARGS_REQ
(
1
));
mrb_define_method
(
mrb
,
a
,
"at"
,
mrb_ary_at
,
ARGS_REQ
(
1
));
mrb_define_method
(
mrb
,
a
,
"at"
,
mrb_ary_at
,
ARGS_REQ
(
1
));
...
...
mrbgems/mruby-array-ext/test/array.rb
View file @
e6ab9237
...
@@ -21,7 +21,7 @@ assert("Array#at") do
...
@@ -21,7 +21,7 @@ assert("Array#at") do
a
.
at
(
0
)
==
"a"
and
a
.
at
(
-
1
)
==
"e"
a
.
at
(
0
)
==
"a"
and
a
.
at
(
-
1
)
==
"e"
end
end
assert
(
"Array
::
rassoc"
)
do
assert
(
"Array
#
rassoc"
)
do
a
=
[
[
1
,
"one"
],
[
2
,
"two"
],
[
3
,
"three"
],
[
"ii"
,
"two"
]
]
a
=
[
[
1
,
"one"
],
[
2
,
"two"
],
[
3
,
"three"
],
[
"ii"
,
"two"
]
]
a
.
rassoc
(
"two"
)
==
[
2
,
"two"
]
and
a
.
rassoc
(
"two"
)
==
[
2
,
"two"
]
and
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment