Class: LogMagic::HoverRenderer

Inherits:
Object
  • Object
show all
Includes:
TemplatingUtils
Defined in:
lib/log_magic/renderers/hover_renderer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#keyObject (readonly)

Returns the value of attribute key.



2
3
4
# File 'lib/log_magic/renderers/hover_renderer.rb', line 2

def key
  @key
end

#valueObject (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_dirObject



14
15
16
# File 'lib/log_magic/renderers/hover_renderer.rb', line 14

def template_dir
  'util_templates'
end

#template_nameObject



10
11
12
# File 'lib/log_magic/renderers/hover_renderer.rb', line 10

def template_name
  'hovering.haml'
end