module SXP
Public Class Methods
Reads one S-expression from the given input stream.
@param [IO, StringIO, String] input @param [Hash{Symbol => Object}] options @return [Object]
# File lib/sxp.rb, line 80 def self.read(input, **options) Reader::Basic.read(input, **options) end
Reads all S-expressions from the given input stream.
@param [IO, StringIO, String] input @param [Hash{Symbol => Object}] options @return [Enumerable<Object>]
# File lib/sxp.rb, line 70 def self.read_all(input, **options) Reader::Basic.read_all(input, **options) end
Reads all S-expressions from a given input file.
@param [String, to_s] filename @param [Hash{Symbol => Object}] options @return [Enumerable<Object>]
# File lib/sxp.rb, line 60 def self.read_file(filename, **options) Reader::Basic.read_file(filename, **options) end
Reads all S-expressions from the given input files.
@overload read_files
(*filenames)
@param [Enumerable<String>] filenames
@overload read_files
(*filenames, **options)
@param [Enumerable<String>] filenames @param [Hash{Symbol => Object}] options
@return [Enumerable<Object>]
# File lib/sxp.rb, line 50 def self.read_files(*filenames) Reader::Basic.read_files(*filenames) end
Reads all S-expressions from a given input URL using the HTTP or FTP protocols.
@param [String, to_s] url @param [Hash{Symbol => Object}] options @return [Enumerable<Object>]
# File lib/sxp.rb, line 35 def self.read_url(url, **options) Reader::Basic.read_url(url, **options) end