Class: RDF::List
- Inherits:
-
Object
- Object
- RDF::List
- Defined in:
- lib/rdf/n3/extensions.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#to_sxp(**options) ⇒ String
Returns an S-Expression (SXP) representation.
-
#to_sxp_bin ⇒ Array
Transform Statement into an SXP.
-
#variable? ⇒ Boolean
A list is variable if any of its members are variable?.
Instance Method Details
#to_sxp(**options) ⇒ String
Returns an S-Expression (SXP) representation
36 37 38 |
# File 'lib/rdf/n3/extensions.rb', line 36 def to_sxp(**) to_a.to_sxp_bin.to_sxp(**) end |
#to_sxp_bin ⇒ Array
Transform Statement into an SXP
28 29 30 |
# File 'lib/rdf/n3/extensions.rb', line 28 def to_sxp_bin to_a.to_sxp_bin end |
#variable? ⇒ Boolean
A list is variable if any of its members are variable?
22 23 24 |
# File 'lib/rdf/n3/extensions.rb', line 22 def variable? to_a.any?(&:variable?) end |