Class: Symbol
- Defined in:
- vendor/bundler/ruby/3.3.0/bundler/gems/sxp.rb-7a771a32c5fe/lib/sxp/extensions.rb
Overview
Extensions for Ruby's Symbol
class.
Instance Method Summary collapse
-
#keyword? ⇒ Boolean
Returns
true
if this is a keyword symbol. -
#to_sxp(**options) ⇒ String
Returns the SXP representation of this object.
Instance Method Details
#keyword? ⇒ Boolean
Returns true
if this is a keyword symbol.
113 114 115 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/sxp.rb-7a771a32c5fe/lib/sxp/extensions.rb', line 113 def keyword? to_s[-1] == ?: end |
#to_sxp(**options) ⇒ String
Returns the SXP representation of this object.
105 106 107 |
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/sxp.rb-7a771a32c5fe/lib/sxp/extensions.rb', line 105 def to_sxp(**) to_s end |