class Object
Extensions for Ruby's `Object` class.
Public Instance Methods
deep_dup()
click to toggle source
Default for deep_dup
is shallow dup @return [Object]
# File lib/sparql/algebra/extensions.rb, line 43 def deep_dup dup end
optimize(**options)
click to toggle source
A duplicate of this object.
@return [Object] a copy of `self` @see SPARQL::Algebra::Expression#optimize
# File lib/sparql/algebra/extensions.rb, line 36 def optimize(**options) self.deep_dup end
to_sse()
click to toggle source
Make sure the object is in SXP form and transform it to a string form @return String
# File lib/sparql/algebra/extensions.rb, line 27 def to_sse SXP::Generator.string(self.to_sxp_bin) end
to_sxp_bin()
click to toggle source
Returns the SXP binary representation of this object, defaults to `self`.
@return [String]
# File lib/sparql/algebra/extensions.rb, line 20 def to_sxp_bin self end