lib/rio/base.rb in rio-0.3.3 vs lib/rio/base.rb in rio-0.3.4

- old
+ new

@@ -35,14 +35,10 @@ # The documented interface and behavior is subject to change without notice.</b> module RIO class Base < ::Object #:nodoc: all -# KIOSYMS = [:gets,:open,:readline,:readlines, -# :chop,:chomp!,:chop!, -# :to_a,:putc,:puts,:print,:printf,:split,:=~] -# @@kernel_cleaned ||= KIOSYMS.each { |sym| undef_method(sym) } KEEPSYM = { '__id__' => true, '__send__' => true, 'send' => true, 'class' => true, @@ -52,10 +48,10 @@ 'respond_to?' => true, 'object_id' => true, 'dup' => true, 'clone' => true, 'nil?' => true, -# 'to_s' => true, + 'open' => true, }.freeze instance_methods.each { |m| undef_method m unless KEEPSYM[m] } end end