Class: Interview::Tooltip

Inherits:
Control
  • Object
show all
Defined in:
lib/interview/tooltip.rb

Instance Attribute Summary collapse

Attributes inherited from Control

#parent

Instance Method Summary collapse

Methods inherited from Control

#ancestors, build, definition, #find_attribute, #find_attribute!, inherited, #initialize, #set_attributes, #set_defaults

Constructor Details

This class inherits a constructor from Interview::Control

Instance Attribute Details

#styleObject

Returns the value of attribute style.



4
5
6
# File 'lib/interview/tooltip.rb', line 4

def style
  @style
end

#tooltipObject

Returns the value of attribute tooltip.



4
5
6
# File 'lib/interview/tooltip.rb', line 4

def tooltip
  @tooltip
end

Instance Method Details

#renderObject



10
11
12
13
14
15
16
# File 'lib/interview/tooltip.rb', line 10

def render
  if @style and respond_to?("render_#{@style}_style", true)
    return send "render_#{@style}_style"
  else
    return render_default_style
  end
end