Class: LogMagic::HoverRenderer
- Inherits:
-
Object
- Object
- LogMagic::HoverRenderer
- Includes:
- TemplatingUtils
- Defined in:
- lib/log_magic/renderers/hover_renderer.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(key, value) ⇒ HoverRenderer
constructor
A new instance of HoverRenderer.
- #template_dir ⇒ Object
- #template_name ⇒ Object
Methods included from TemplatingUtils
#enriche, #match_regex, #rendered_template, #template_path
Constructor Details
#initialize(key, value) ⇒ HoverRenderer
Returns a new instance of HoverRenderer.
5 6 7 8 |
# File 'lib/log_magic/renderers/hover_renderer.rb', line 5 def initialize(key, value) @key = key @value = value end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
2 3 4 |
# File 'lib/log_magic/renderers/hover_renderer.rb', line 2 def key @key end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
2 3 4 |
# File 'lib/log_magic/renderers/hover_renderer.rb', line 2 def value @value end |
Instance Method Details
#template_dir ⇒ Object
14 15 16 |
# File 'lib/log_magic/renderers/hover_renderer.rb', line 14 def template_dir 'util_templates' end |
#template_name ⇒ Object
10 11 12 |
# File 'lib/log_magic/renderers/hover_renderer.rb', line 10 def template_name 'hovering.haml' end |