Module: SXP
- Defined in:
- vendor/bundler/ruby/3.3.0/bundler/gems/sxp.rb-7a771a32c5fe/lib/sxp.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/sxp.rb-7a771a32c5fe/lib/sxp/list.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/sxp.rb-7a771a32c5fe/lib/sxp/pair.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/sxp.rb-7a771a32c5fe/lib/sxp/reader.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/sxp.rb-7a771a32c5fe/lib/sxp/version.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/sxp.rb-7a771a32c5fe/lib/sxp/generator.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/sxp.rb-7a771a32c5fe/lib/sxp/reader/basic.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/sxp.rb-7a771a32c5fe/lib/sxp/reader/scheme.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/sxp.rb-7a771a32c5fe/lib/sxp/reader/sparql.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/sxp.rb-7a771a32c5fe/lib/sxp/reader/extended.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/sxp.rb-7a771a32c5fe/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.
65 66 67 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/sxp.rb-7a771a32c5fe/lib/sxp.rb', line 65 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.
55 56 57 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/sxp.rb-7a771a32c5fe/lib/sxp.rb', line 55 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.
45 46 47 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/sxp.rb-7a771a32c5fe/lib/sxp.rb', line 45 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.
35 36 37 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/sxp.rb-7a771a32c5fe/lib/sxp.rb', line 35 def self.read_files(*filenames) Reader::Basic.read_files(*filenames) end |
.read_url(url, **options) ⇒ Enumerable<Object> Also known as: parse_url, parse_uri, read_uri
Reads all S-expressions from a given input URL using the HTTP or FTP protocols.
20 21 22 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/sxp.rb-7a771a32c5fe/lib/sxp.rb', line 20 def self.read_url(url, **) Reader::Basic.read_url(url, **) end |