Class: Gollum::Macro::Unknown_Macro

Inherits:
Gollum::Macro show all
Defined in:
lib/gollum-lib/macro.rb

Overview

The special class we reserve for only the finest of screwups. The underscore is to make sure nobody can define a real, callable macro with the same name, because that would be… exciting.

Instance Method Summary collapse

Methods inherited from Gollum::Macro

instance

Constructor Details

#initialize(macro_name) ⇒ Unknown_Macro

Returns a new instance of Unknown_Macro.



36
37
38
# File 'lib/gollum-lib/macro.rb', line 36

def initialize(macro_name)
  @macro_name = macro_name
end

Instance Method Details

#render(*_args) ⇒ Object



40
41
42
# File 'lib/gollum-lib/macro.rb', line 40

def render(*_args)
  "!!!Unknown macro: #{@macro_name}!!!"
end