Class: Journey::Path::Pattern::UnanchoredRegexp

Inherits:
AnchoredRegexp show all
Defined in:
lib/journey/path/pattern.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods inherited from AnchoredRegexp

#initialize, #visit_CAT, #visit_GROUP, #visit_LITERAL, #visit_SLASH, #visit_STAR, #visit_SYMBOL

Constructor Details

This class inherits a constructor from Journey::Path::Pattern::AnchoredRegexp

Instance Method Details

#accept(node) ⇒ Object



129
130
131
# File 'lib/journey/path/pattern.rb', line 129

def accept node
  %r{\A#{visit node}}
end