Class: Interview::Tooltip
Instance Attribute Summary collapse
-
#style ⇒ Object
Returns the value of attribute style.
-
#tooltip ⇒ Object
Returns the value of attribute tooltip.
Attributes inherited from Control
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
#style ⇒ Object
Returns the value of attribute style.
4 5 6 |
# File 'lib/interview/tooltip.rb', line 4 def style @style end |
#tooltip ⇒ Object
Returns the value of attribute tooltip.
4 5 6 |
# File 'lib/interview/tooltip.rb', line 4 def tooltip @tooltip end |
Instance Method Details
#render ⇒ Object
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 |