Class: Hanami::Router::Segment Private

Inherits:
Object
  • Object
show all
Defined in:
lib/hanami/router/segment.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Route path

Since:

  • 2.0.0

Class Method Summary collapse

Class Method Details

.fabricate(segment, **constraints) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 2.0.0



14
15
16
# File 'lib/hanami/router/segment.rb', line 14

def self.fabricate(segment, **constraints)
  Mustermann.new(segment, type: :rails, version: "5.0", capture: constraints)
end