Class: Regexp

Inherits:
Object show all
Defined in:
lib/sxp/extensions.rb

Overview

Extensions for Ruby’s ‘Regexp` class.

Instance Method Summary collapse

Instance Method Details

#to_sxp(**options) ⇒ String

Returns the SXP representation of this object.

Returns:



213
214
215
# File 'lib/sxp/extensions.rb', line 213

def to_sxp(**options)
  '#' << inspect
end