Method: Hanami::View::Part#_format

Defined in:
lib/hanami/view/part.rb

#_formatSymbol #formatSymbol

Returns the template format for the current rendering.

Overloads:

  • #_formatSymbol

    Returns the format.

  • #formatSymbol

    A convenience alias for ‘#_format.` Is available unless the value itself responds to `#format`.

Returns:

  • (Symbol)

    format

Since:

  • 2.1.0



102
103
104
# File 'lib/hanami/view/part.rb', line 102

def _format
  _rendering.format
end