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
-
.read(input, options = {}) ⇒ Object
(also: parse)
Reads one S-expression from the given input stream.
-
.read_all(input, options = {}) ⇒ Enumerable<Object>
(also: parse_all)
Reads all S-expressions from the given input stream.
-
.read_file(filename, options = {}) ⇒ Enumerable<Object>
(also: parse_file)
Reads all S-expressions from a given input file.
-
.read_files(*filenames) ⇒ Enumerable<Object>
(also: parse_files)
Reads all S-expressions from the given input files.
-
.read_url(url, options = {}) ⇒ Enumerable<Object>
(also: parse_url, parse_uri, read_uri)
Reads all S-expressions from a given input URL using the HTTP or FTP protocols.
-
.write(sxp, output = STDOUT) ⇒ Object
Write an internal S-Expression as a formatted SXP.
Class Method Details
.read(input, options = {}) ⇒ Object Also known as: parse
Reads one S-expression from the given input stream.
80 81 82 |
# File 'lib/sxp.rb', line 80 def self.read(input, = {}) Reader::Basic.read(input, ) end |
.read_all(input, options = {}) ⇒ Enumerable<Object> Also known as: parse_all
Reads all S-expressions from the given input stream.
70 71 72 |
# File 'lib/sxp.rb', line 70 def self.read_all(input, = {}) Reader::Basic.read_all(input, ) end |
.read_file(filename, options = {}) ⇒ Enumerable<Object> Also known as: parse_file
Reads all S-expressions from a given input file.
60 61 62 |
# File 'lib/sxp.rb', line 60 def self.read_file(filename, = {}) Reader::Basic.read_file(filename, ) end |
.read_files(*filenames) ⇒ Enumerable<Object> .read_files(*filenames, options) ⇒ Enumerable<Object> Also known as: parse_files
Reads all S-expressions from the given input files.
50 51 52 |
# File 'lib/sxp.rb', line 50 def self.read_files(*filenames) Reader::Basic.read_files(*filenames) end |