mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-enumerator: make Enumerator#initialize_copy private
This commit is contained in:
@@ -132,7 +132,7 @@ class Enumerator
|
||||
@stop_exc = false
|
||||
end
|
||||
|
||||
def initialize_copy(obj)
|
||||
private def initialize_copy(obj)
|
||||
raise TypeError, "can't copy type #{obj.class}" unless obj.kind_of? Enumerator
|
||||
raise TypeError, "can't copy execution context" if obj.instance_eval{@fib}
|
||||
meth = args = kwd = fib = nil
|
||||
|
||||
Reference in New Issue
Block a user