Sha256: e090f0cb9bda508a46bd82f4daa4000ae97e03bcee8f65cee4aa9518248b9b53

Contents?: true

Size: 287 Bytes

Versions: 2

Compression:

Stored size: 287 Bytes

Contents

module UrlRegexp
  class Node
    def eql?(other)
      hash == other.hash
    end

    def append(node)
      raise NotImplementedError
    end

    def to_regexp_s
      raise NotImplementedError
    end

    def to_regexp
      rs = to_regexp_s
      Regexp.new(rs)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
url_regexp-0.1.1 lib/url_regexp/node.rb
url_regexp-0.1.0 lib/url_regexp/node.rb