Method: Cog::EmbedContext#hook

Defined in:
lib/cog/embed_context.rb

#hookString (readonly)

Returns hook name used in the embed statement.

Examples:

// cog: this-is-the-hook-name

Returns:

  • (String)

    hook name used in the embed statement



18
19
20
# File 'lib/cog/embed_context.rb', line 18

def hook
  @hook
end