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

#regexp?true

Is the object a regexp?

Examples:

Is the object a regex?

/^[123]/.regexp?

Returns:

  • (true)

    Always true.

Since:

  • 1.0.0



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

def regexp?; true; end