# File /home/ser/Work/rexml/rexml/source.rb, line 7 def SourceFactory::create_from arg#, slurp=true if arg.kind_of? String source = Source.new(arg) elsif arg.kind_of? IO #if slurp # source = Source.new( arg.read ) #else source = IOSource.new(arg) #end end source end