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
fa1c1ab4
Commit
fa1c1ab4
authored
Jun 18, 2016
by
Yukihiro "Matz" Matsumoto
Committed by
GitHub
Jun 18, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3163 from mattn/fix-public_methods
Fix public methods
parents
a8af43f6
8a15ab0c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
src/kernel.c
src/kernel.c
+1
-3
test/t/kernel.rb
test/t/kernel.rb
+5
-0
No files found.
src/kernel.c
View file @
fa1c1ab4
...
...
@@ -722,9 +722,7 @@ mrb_obj_singleton_methods(mrb_state *mrb, mrb_bool recur, mrb_value obj)
static
mrb_value
mrb_obj_methods
(
mrb_state
*
mrb
,
mrb_bool
recur
,
mrb_value
obj
,
mrb_method_flag_t
flag
)
{
if
(
recur
)
return
mrb_class_instance_method_list
(
mrb
,
recur
,
mrb_class
(
mrb
,
obj
),
0
);
return
mrb_obj_singleton_methods
(
mrb
,
recur
,
obj
);
}
/* 15.3.1.3.31 */
/*
...
...
test/t/kernel.rb
View file @
fa1c1ab4
...
...
@@ -423,6 +423,11 @@ end
assert
(
'Kernel#public_methods'
,
'15.3.1.3.38'
)
do
assert_equal
Array
,
public_methods
.
class
class
Foo
def
foo
end
end
assert_equal
[
:foo
],
Foo
.
new
.
public_methods
(
false
)
end
# Kernel#puts is defined in mruby-print mrbgem. '15.3.1.3.39'
...
...
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