Flowdock
method

regexp_chunk

Importance_0
v2.1.0 - Show latest stable - 0 notes - Class: ActionController::Routing::DynamicSegment
regexp_chunk() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_controller/routing/segments.rb, line 177
      def regexp_chunk
        if regexp 
          if regexp_has_modifiers?
            "(#{regexp.to_s})"
          else
            "(#{regexp.source})"
          end
        else
          "([^#{Routing::SEPARATORS.join}]+)"
        end
      end
Register or log in to add new notes.