~ubuntu-branches/ubuntu/trusty/jruby/trusty-proposed

« back to all changes in this revision

Viewing changes to lib/ruby/1.9/rss/utils.rb

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Delafond
  • Date: 2009-12-10 12:34:42 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20091210123442-df7t1v36qtfkj5df
Tags: 1.4.0-1
* New upstream release.
* Updated watch file.
* Updated copyright file to reflect addition of new third-party jars.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
        "#{part[0, 1].upcase}#{part[1..-1]}"
9
9
      end.join("")
10
10
    end
11
 
    
 
11
 
12
12
    def get_file_and_line_from_caller(i=0)
13
13
      file, line, = caller[i].split(':')
14
14
      line = line.to_i
21
21
      s.to_s.gsub(/&/, "&amp;").gsub(/\"/, "&quot;").gsub(/>/, "&gt;").gsub(/</, "&lt;")
22
22
    end
23
23
    alias h html_escape
24
 
    
 
24
 
25
25
    # If +value+ is an instance of class +klass+, return it, else
26
26
    # create a new instance of +klass+ with value +value+.
27
27
    def new_with_value_if_need(klass, value)