Module: Origin::Extensions::Regexp

Defined in:
lib/origin/extensions/regexp.rb

Overview

This module contains additional regex behaviour.

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary (collapse)

Instance Method Details

- (true) regexp?

Is the object a regexp?

Examples:

Is the object a regex?

/^[123]/.regexp?

Since:

  • 1.0.0



16
# File 'lib/origin/extensions/regexp.rb', line 16

def regexp?; true; end