Skip to content

Commit

Permalink
[DOC] documents of aliased methods
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Dec 18, 2023
1 parent ba1d152 commit 9abaf00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gc.rb
Expand Up @@ -39,6 +39,7 @@ def self.start full_mark: true, immediate_mark: true, immediate_sweep: true
Primitive.gc_start_internal full_mark, immediate_mark, immediate_sweep, false
end

# Alias of GC.start
def garbage_collect full_mark: true, immediate_mark: true, immediate_sweep: true
Primitive.gc_start_internal full_mark, immediate_mark, immediate_sweep, false
end
Expand Down Expand Up @@ -322,6 +323,7 @@ def self.total_time
end

module ObjectSpace
# Alias of GC.start
def garbage_collect full_mark: true, immediate_mark: true, immediate_sweep: true
Primitive.gc_start_internal full_mark, immediate_mark, immediate_sweep, false
end
Expand Down

0 comments on commit 9abaf00

Please sign in to comment.