lib/sxp.rb in sxp-0.1.3 vs lib/sxp.rb in sxp-0.1.4

- old
+ new

@@ -31,11 +31,11 @@ # # @param [String, #to_s] url # @param [Hash{Symbol => Object}] options # @return [Enumerable<Object>] def self.read_url(url, options = {}) - Reader::Scheme.read_url(url, options) + Reader::Basic.read_url(url, options) end ## # Reads all S-expressions from the given input files. # @@ -46,40 +46,40 @@ # @param [Enumerable<String>] filenames # @param [Hash{Symbol => Object}] options # # @return [Enumerable<Object>] def self.read_files(*filenames) - Reader::Scheme.read_files(*filenames) + Reader::Basic.read_files(*filenames) end ## # Reads all S-expressions from a given input file. # # @param [String, #to_s] filename # @param [Hash{Symbol => Object}] options # @return [Enumerable<Object>] def self.read_file(filename, options = {}) - Reader::Scheme.read_file(filename, options) + Reader::Basic.read_file(filename, options) end ## # Reads all S-expressions from the given input stream. # # @param [IO, StringIO, String] input # @param [Hash{Symbol => Object}] options # @return [Enumerable<Object>] def self.read_all(input, options = {}) - Reader::Scheme.read_all(input, options) + Reader::Basic.read_all(input, options) end ## # Reads one S-expression from the given input stream. # # @param [IO, StringIO, String] input # @param [Hash{Symbol => Object}] options # @return [Object] def self.read(input, options = {}) - Reader::Scheme.read(input, options) + Reader::Basic.read(input, options) end ## # Write an internal S-Expression as a formatted SXP #