Commit bc03650c authored by KOBAYASHI Shuji's avatar KOBAYASHI Shuji

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

- `fib=` writer is not used.
- All accessors are used as public (e.g. in `initialized_copy`).
parent 37d795de
......@@ -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