Class: Regexp

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

Overview

Extensions for Ruby's Regexp class.

Instance Method Summary (collapse)

Instance Method Details

- (String) to_sxp

Returns the SXP representation of this object.

Returns:



132
133
134
# File 'lib/sxp/writer.rb', line 132

def to_sxp
  '#' << inspect
end