Class: Gollum::Macro::Unknown_Macro
- Inherits:
-
Gollum::Macro
- Object
- Gollum::Macro
- Gollum::Macro::Unknown_Macro
- 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
-
#initialize(macro_name) ⇒ Unknown_Macro
constructor
A new instance of Unknown_Macro.
- #render(*_args) ⇒ Object
Methods inherited from Gollum::Macro
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) html_error("Unknown macro: #{@macro_name}") end |