Skip to content

Conversation

@BurdetteLamar
Copy link
Member

No description provided.

@BurdetteLamar BurdetteLamar requested a review from nobu December 1, 2025 14:54
@BurdetteLamar BurdetteLamar added the documentation Improvements or additions to documentation label Dec 1, 2025
# @output_cookies=nil,
# @output_hidden=nil,
# @params={}>
# cgi
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could not get any such output:

> irb
require "cgi"
irb(main):001> require "cgi"
=> true
irb(main):002> cgi = CGI.new
=> #<CGI:0x0000000126445080>
irb(main):003> cgi
=> #<CGI:0x0000000126445080>
irb(main):004> puts cgi.pretty_inspect
#<CGI:0x0000000126445080>
=> nil
irb(main):005> puts cgi.inspect
#<CGI:0x0000000126445080>
=> nil
irb(main):006> cgi.inspect
=> "#<CGI:0x0000000126445080>"

How do you get it?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahhh, I figured it out:

irb(main):001> gem "cgi"
=> true
irb(main):002> require "cgi"
=> true
irb(main):003> cgi = CGI.new
(offline mode: enter name=value pairs on standard input)
=> 
#<CGI:0x000000010ac049e0
 @accept_charset=#<Encoding:UTF-8>,
 @accept_charset_error_block=nil,
 @cookies={},
 @max_multipart_length=134217728,
 @multipart=false,
 @options={accept_charset: #<Encoding:UTF-8>, max_multipart_length: 134217728},
 @output_cookies=nil,
 @output_hidden=nil,
 @params={}>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants