Class: Hanami::Router::Formatter::HumanFriendly Private

Inherits:
Object
  • Object
show all
Defined in:
lib/hanami/router/formatter/human_friendly.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.

Since:

  • 2.0.0

Instance Method Summary collapse

Instance Method Details

#call(routes) ⇒ 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



38
39
40
# File 'lib/hanami/router/formatter/human_friendly.rb', line 38

def call(routes)
  routes.filter_map(&method(:format_route_unless_head)).join(NEW_LINE)
end