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.



32
33
34
# File 'lib/gollum-lib/macro.rb', line 32

def initialize(macro_name)
  @macro_name = macro_name
end

Instance Method Details

#render(*_args) ⇒ Object



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

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