vendor/gems/ziya-2.1.7/lib/ziya/charts/support/draw.rb
def opts_as_string( opts )
      buff = []
      opts.keys.sort{ |a,b| a.to_s <=> b.to_s }.each do |k|
        value = opts[k]
        buff << sprintf( ":%s => '%s'", k, value.to_s ) if value
      end    
      buff.join( "," )
    end
# -------------------------------------------------------------------------
# Turns options hash into string representation
Turns options hash into string representation
Turns options hash into string representation
def opts_as_string( opts )
      buff = []
      opts.keys.sort{ |a,b| a.to_s <=> b.to_s }.each do |k|
        value = opts[k]
        buff << sprintf( ":%s => '%s'", k, value.to_s ) if value
      end    
      buff.join( "," )
    end
def opts_as_string ( opts ) buff = [ ] opts . keys . sort { | a , b | a . to_s <=> b . to_s } . each do | k | value = opts [ k ] buff << sprintf ( ":%s => '%s'" , k , value . to_s ) if value end buff . join ( "," ) end
Turns options hash into string representation
Turns options hash into string representation
opts