Class: Regexp

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_ext/regexp.rb

Overview

Copyright © 2016 Freescale Semiconductor Inc.

Class Method Summary collapse

Class Method Details

.stringRegexp

Returns single and double quoted strings.

Returns:

  • (Regexp)

    single and double quoted strings



4
5
6
# File 'lib/ruby_ext/regexp.rb', line 4

def self.string
  /['"][^'"]*['"]/
end