| Class | REXML::SourceFactory |
| In: |
|
| Parent: | Object |
Generates Source-s. USE THIS CLASS.
Methods
Public Class methods
Generates a Source object @param arg Either a String, or an IO @return a Source, or nil if a bad argument was given
9: def SourceFactory::create_from arg#, slurp=true 10: if arg.kind_of? String 11: source = Source.new(arg) 12: elsif arg.kind_of? IO 13: source = IOSource.new(arg) 14: end 15: source 16: end