Class: Regexp

Inherits:
Object show all
Defined in:
vendor/bundler/ruby/2.6.0/bundler/gems/sxp.rb-a6201a87d980/lib/sxp/writer.rb,
vendor/bundler/ruby/2.6.0/bundler/gems/rdf-7506695c9b4f/lib/rdf/extensions.rb

Overview

Extensions for Ruby's Regexp class.

Instance Method Summary collapse

Instance Method Details

#match?(*args) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
# File 'vendor/bundler/ruby/2.6.0/bundler/gems/rdf-7506695c9b4f/lib/rdf/extensions.rb', line 9

def match?(*args)
  !match(*args).nil?
end

#to_sxpString

Returns the SXP representation of this object.

Returns:



148
149
150
# File 'vendor/bundler/ruby/2.6.0/bundler/gems/sxp.rb-a6201a87d980/lib/sxp/writer.rb', line 148

def to_sxp
  '#' << inspect
end