Class: Card::Layout::UnknownLayout
Constant Summary
collapse
- SCOPE =
"mod.core.format.html_format".freeze
Instance Method Summary
collapse
built_in_layouts, built_in_layouts_hash, card_layout?, clear_cache, code_layout?, deregister_layout, #fetch_main_nest_opts, #initialize, layout_class, layout_key, layouts, #main_nest_opts, main_nest_opts, register_built_in_layout, register_layout, register_layout_with_nest, render
Constructor Details
This class inherits a constructor from Card::Layout
Instance Method Details
10
11
12
|
# File 'mod/standard/lib/card/layout/unknown_layout.rb', line 10
def
@format.content_tag(:h1, @format.tr(:unknown_layout, scope: SCOPE, name: @layout))
end
|
#render ⇒ Object
6
7
8
|
# File 'mod/standard/lib/card/layout/unknown_layout.rb', line 6
def render
@format.output [, text]
end
|
#text ⇒ Object
14
15
16
17
|
# File 'mod/standard/lib/card/layout/unknown_layout.rb', line 14
def text
@format.tr(:available_layouts, scope: SCOPE,
available_layouts: self.class.built_in_layouts)
end
|