Sha256: 35c8c6835e47adf04c9c31f03d764d039d2f3e1a90aa50dca35a1438823eb852

Contents?: true

Size: 244 Bytes

Versions: 3

Compression:

Stored size: 244 Bytes

Contents

class Regexp
  # Like #to_re, but following Ruby's formal definitions,
  # only a Regular expression like object will respond to this.
  #
  # Note: To be of much real use this should be defined in core Ruby.
  def to_regexp
    self
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
facets-0.7.1 lib/facet/regexp/to_regexp.rb
facets-0.7.0 lib/facet/regexp/to_regexp.rb
facets-0.7.2 lib/facet/regexp/to_regexp.rb