Module: SXP

Defined in:
lib/sxp.rb,
lib/sxp/list.rb,
lib/sxp/pair.rb,
lib/sxp/reader.rb,
lib/sxp/version.rb,
lib/sxp/generator.rb,
lib/sxp/reader/basic.rb,
lib/sxp/reader/scheme.rb,
lib/sxp/reader/sparql.rb,
lib/sxp/reader/extended.rb,
lib/sxp/reader/common_lisp.rb

Defined Under Namespace

Modules: VERSION Classes: Generator, List, Pair, Reader

Class Method Summary (collapse)

Class Method Details

+ (Object) read(input, options = {}) Also known as: parse

Reads one S-expression from the given input stream.

Parameters:

Returns:



75
76
77
# File 'lib/sxp.rb', line 75

def self.read(input, options = {})
  Reader::Scheme.read(input, options)
end

+ (Enumerable<Object>) read_all(input, options = {}) Also known as: parse_all

Reads all S-expressions from the given input stream.

Parameters:

Returns:



65
66
67
# File 'lib/sxp.rb', line 65

def self.read_all(input, options = {})
  Reader::Scheme.read_all(input, options)
end

+ (Enumerable<Object>) read_file(filename, options = {}) Also known as: parse_file

Reads all S-expressions from a given input file.

Parameters:

Returns:



55
56
57
# File 'lib/sxp.rb', line 55

def self.read_file(filename, options = {})
  Reader::Scheme.read_file(filename, options)
end

+ (Enumerable<Object>) read_files(*filenames) Also known as: parse_files

Reads all S-expressions from the given input files.

Parameters:

Returns:



45
46
47
# File 'lib/sxp.rb', line 45

def self.read_files(*filenames)
  Reader::Scheme.read_files(*filenames)
end

+ (Enumerable<Object>) read_url(url, options = {}) Also known as: parse_url, parse_uri, read_uri

Reads all S-expressions from a given input URL using the HTTP or FTP protocols.

Parameters:

Returns:



35
36
37
# File 'lib/sxp.rb', line 35

def self.read_url(url, options = {})
  Reader::Scheme.read_url(url, options)
end