mruby-enumerator: Refine accessors (obj/meth/args/fib).

- `fib=` writer is not used.
- All accessors are used as public (e.g. in `initialized_copy`).
This commit is contained in:
KOBAYASHI Shuji
2018-12-30 09:46:48 +09:00
parent 37d795dec7
commit bc03650c6a
@@ -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