class Symbol

Extensions for Ruby's `Symbol` class.

Extensions for Ruby's `Symbol` class.

Public Instance Methods

keyword?() click to toggle source

Returns `true` if this is a keyword symbol.

@return [Boolean]

# File lib/sxp/extensions.rb, line 8
def keyword?
  to_s[-1] == ?:
end
to_sxp() click to toggle source

Returns the SXP representation of this object.

@return [String]

# File lib/sxp/writer.rb, line 71
def to_sxp
  to_s
end