vendor/gems/ziya-2.1.7/lib/ziya/maps/base.rb
def to_s
      @xml = Builder::XmlMarkup.new
      # Forces utf8 encoding on xml stream
      @xml.instruct! :xml, :version => "1.0", :encoding => "UTF-8"    
      if map_type == :us
        @xml.us_states do
          setup_lnf
          setup_series
        end
      else
        @xml.countrydata do
          setup_lnf
          setup_series
        end         
      end
      @xml.to_s.gsub( /<to_s\/>/, '' )
    end
# spews the map specification to a string
spews the map specification to a string
spews the map specification to a string
def to_s
      @xml = Builder::XmlMarkup.new
      @xml.instruct! :xml, :version => "1.0", :encoding => "UTF-8"    
      if map_type == :us
        @xml.us_states do
          setup_lnf
          setup_series
        end
      else
        @xml.countrydata do
          setup_lnf
          setup_series
        end         
      end
      @xml.to_s.gsub( /<to_s\/>/, '' )
    end
def to_s @xml = Builder :: XmlMarkup . new @xml . instruct! :xml , :version => "1.0" , :encoding => "UTF-8" if map_type == :us @xml . us_states do setup_lnf setup_series end else @xml . countrydata do setup_lnf setup_series end end @xml . to_s . gsub ( / <to_s \/ > / , '' ) end
spews the map specification to a string
spews the map specification to a string
# Forces utf8 encoding on xml stream