Class: Symbol
Overview
Extensions for Ruby's Symbol
class.
Instance Method Summary collapse
-
#keyword? ⇒ Boolean
Returns
true
if this is a keyword symbol. -
#to_sxp ⇒ String
Returns the SXP representation of this object.
Instance Method Details
#keyword? ⇒ Boolean
Returns true
if this is a keyword symbol.
8 9 10 |
# File 'lib/sxp/extensions.rb', line 8 def keyword? to_s[-1] == ?: end |
#to_sxp ⇒ String
Returns the SXP representation of this object.
72 73 74 |
# File 'lib/sxp/writer.rb', line 72 def to_sxp to_s end |