0001-Adding-documentation-for-CGI.patch

Clinton Nixon, 05/19/2011 04:01 AM

Download (1.74 KB)

View differences:

lib/cgi/core.rb
46 46

  
47 47
  # :startdoc:
48 48

  
49
  # Synonym for ENV.
49 50
  def env_table
50 51
    ENV
51 52
  end
52 53

  
54
  # Synonym for $stdin.
53 55
  def stdinput
54 56
    $stdin
55 57
  end
56 58

  
59
  # Synonym for $stdout.
57 60
  def stdoutput
58 61
    $stdout
59 62
  end
......
705 708

  
706 709
  @@accept_charset="UTF-8"
707 710

  
711
  # Return the accept character set for all new CGI instances.
708 712
  def self.accept_charset
709 713
    @@accept_charset
710 714
  end
711 715

  
716
  # Set the accept character set for all new CGI instances.
712 717
  def self.accept_charset=(accept_charset)
713 718
    @@accept_charset=accept_charset
714 719
  end
715 720

  
721
  # Return the accept character set for this CGI instance.
716 722
  attr_reader :accept_charset
717 723

  
718 724
  # Create a new CGI instance.
lib/cgi/util.rb
83 83
      end
84 84
    end
85 85
  end
86

  
87
  # Synonym for CGI.escapeHTML.
86 88
  def CGI::escape_html(str)
87 89
    escapeHTML(str)
88 90
  end
91

  
92
  # Synonym for CGI.unescapeHTML.
89 93
  def CGI::unescape_html(str)
90 94
    unescapeHTML(str)
91 95
  end
......
134 138
      string
135 139
    end
136 140
  end
141

  
142
  # Synonym for CGI.escapeElement.
137 143
  def CGI::escape_element(str)
138 144
    escapeElement(str)
139 145
  end
146

  
147
  # Synonym for CGI.unescapeElement.
140 148
  def CGI::unescape_element(str)
141 149
    unescapeElement(str)
142 150
  end
143
-