lib/sinatra/tags.rb
# remove any other version of #to_html_attributes
remove any other version of #to_html_attributes
remove any other version of #to_html_attributes
def to_html_attributes(include_empties=nil)
    hash = self.dup
    hash.reject! {|k,v| v.blank? } unless include_empties.nil?
    out = ''
    hash.keys.each do |key|
      val = hash[key].is_a?(Array) ? hash[key].join('_') : hash[key].to_s
      out << "#{key.to_s}=\"#{val}\" "
    end
    out.strip
  end
def to_html_attributes ( include_empties = nil ) hash = self . dup hash . reject! { | k , v | v . blank? } unless include_empties . nil? out = '' hash . keys . each do | key | val = hash [ key ] . is_a? ( Array ) ? hash [ key ] . join ( '_' ) : hash [ key ] . to_s out << "#{key.to_s}=\"#{val}\" " end out . strip end
remove any other version of #to_html_attributes
remove any other version of #to_html_attributes
include_empties
<not_specific>