Unverified Commit 23ca1dcb authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #4206 from shuujii/enumerator-refine-accessor

mruby-enumerator: Refine accessors (obj/meth/args/fib).
parents a5ad768c bc03650c
......@@ -128,8 +128,8 @@ class Enumerator
@feedvalue = nil
@stop_exc = false
end
attr_accessor :obj, :meth, :args, :fib
private :obj, :meth, :args, :fib
attr_accessor :obj, :meth, :args
attr_reader :fib
def initialize_copy(obj)
raise TypeError, "can't copy type #{obj.class}" unless obj.kind_of? Enumerator
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment