ff4ff35918
Red Bear OS is a full fork. All sources must be available from git clone with zero network access. Removed gitignore rules that excluded fetched source trees under recipes/*/source/, local/recipes/kde/*/source/, local/recipes/qt/*/source/, and vendor source trees. Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded. 127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt frameworks, mesa, wayland, DRM drivers, and every other recipe source.
46 lines
728 B
Ruby
46 lines
728 B
Ruby
##
|
|
# Kernel
|
|
#
|
|
# ISO 15.3.1
|
|
module Kernel
|
|
|
|
# 15.3.1.2.1 Kernel.`
|
|
# provided by Kernel#`
|
|
# 15.3.1.3.3
|
|
def `(s)
|
|
raise NotImplementedError.new("backquotes not implemented")
|
|
end
|
|
|
|
##
|
|
# 15.3.1.2.3 Kernel.eval
|
|
# 15.3.1.3.12 Kernel#eval
|
|
# NotImplemented by mruby core; use mruby-eval gem
|
|
|
|
##
|
|
# ISO 15.3.1.2.8 Kernel.loop
|
|
# provided by Kernel#loop
|
|
|
|
##
|
|
# Calls the given block repetitively.
|
|
#
|
|
# ISO 15.3.1.3.29
|
|
def loop(&block)
|
|
return to_enum :loop unless block
|
|
|
|
while true
|
|
yield
|
|
end
|
|
rescue StopIteration => e
|
|
e.result
|
|
end
|
|
|
|
# 11.4.4 Step c)
|
|
def !~(y)
|
|
!(self =~ y)
|
|
end
|
|
|
|
def to_enum(*a)
|
|
raise NotImplementedError.new("fiber required for enumerator")
|
|
end
|
|
end
|