mruby-eval (binding_eval_error_check): re-raise Exception in parsing
[mruby.git] / mrbgems / mruby-io / mrblib / file.rb
blobb60b3f8204cd86c235156001ea649b3955299138
1 class File < IO
2   attr_accessor :path
4   def initialize(fd_or_path, mode = "r", perm = 0666)
5     if fd_or_path.kind_of? Integer
6       super(fd_or_path, mode)