class Foundation::Rails::Helpers::Tooltip

Attributes

title[RW]

Public Class Methods

new(attributes: {}, content: nil, title: title) click to toggle source
# File lib/foundation/rails/helpers/tooltip.rb, line 8
def initialize(attributes: {}, content: nil, title: title)
  @title = title
  super(attributes: attributes, content: content)
end

Private Instance Methods

default_attributes() click to toggle source
# File lib/foundation/rails/helpers/tooltip.rb, line 19
def default_attributes
  { data: { tooltip: true }, class: ['has-tip'] }
end
tag_type() click to toggle source
# File lib/foundation/rails/helpers/tooltip.rb, line 15
def tag_type
  :span
end