Skip to content

Commit

Permalink
Implement Kernel.select
Browse files Browse the repository at this point in the history
  • Loading branch information
herwinw committed Jul 8, 2024
1 parent 29f5040 commit 1834b49
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/kernel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ def rand(*args)
Random::DEFAULT.rand(*args)
end

def select(...)
IO.select(...)
end
module_function :select

def warn(*msgs, category: nil, uplevel: nil)
if !category.nil? && !category.is_a?(Symbol)
category = category.to_sym if category.respond_to?(:to_sym)
Expand Down

0 comments on commit 1834b49

Please sign in to comment.