399件ヒット
[1-100件を表示]
(0.014秒)
キーワード
- cgi (12)
-
cgi
/ html (12) -
cgi
/ session (12) - delegate (12)
- drb (12)
-
drb
/ gw (12) - forwardable (12)
- logger (12)
-
net
/ http (12) - open-uri (12)
- prettyprint (12)
- rdoc (12)
-
rdoc
/ generator (12) -
rdoc
/ generator / darkfish (12) -
rdoc
/ generator / json _ index (12) -
rdoc
/ markdown (12) -
rdoc
/ markdown / entities (12) -
rdoc
/ markup (12) -
rdoc
/ markup / to _ html (12) -
rdoc
/ markup / to _ html _ crossref (12) -
rdoc
/ parser / changelog (12) - rexml (12)
-
rinda
/ rinda (12) - rss (12)
- rubygems (12)
- tempfile (12)
-
test
/ unit (12) - webrick (12)
-
webrick
/ htmlutils (12) -
webrick
/ httpauth / htgroup (12) - win32ole (12)
- xmlrpc (3)
- yaml (12)
- zlib (12)
検索結果
-
rdoc
/ markup / to _ html (6023.0) -
RDoc 形式のドキュメントを HTML に整形するためのサブライブラリです。
...RDoc 形式のドキュメントを HTML に整形するためのサブライブラリです。
require 'rdoc/markup/to_html'
h = RDoc::Markup::ToHtml.new
puts h.convert(input_string)
変換した結果は文字列で取得できます。... -
cgi
/ html (6017.0) -
HTML を生成するためのメソッドを提供するモジュールを定義したライブラリです。
...HTML を生成するためのメソッドを提供するモジュールを定義したライブラリです。
様々な DTD に対応しています。... -
rdoc
/ markup / to _ html _ crossref (6017.0) -
RDoc 形式のドキュメントを HTML に整形するためのサブライブラリです。
...RDoc 形式のドキュメントを HTML に整形するためのサブライブラリです。
RDoc::Markup::ToHtml を拡張して、ドキュメント内のメソッド名やクラ
ス名を自動的にリンクにします。... -
webrick
/ htmlutils (6017.0) -
HTML のためのユーティリティ関数を提供します。
...HTML のためのユーティリティ関数を提供します。... -
cgi (181.0)
-
CGI プログラムの支援ライブラリです。
...援ライブラリです。
CGI プロトコルの詳細については以下の文書を参照してください。
* https://tools.ietf.org/html/draft-coar-cgi-v11-03
* 3875: The Common Gateway Interface (CGI) Version 1.1
* https://www.w3.org/CGI/
=== 使用例
==== フォームフィー......w3.org/CGI/ も参照してください。
==== 標準出力に HTTP ヘッダと HTML を出力する
//emlist[][ruby]{
require "cgi"
cgi = CGI.new("html3") # HTML生成メソッドを追加
cgi.out() do
cgi.html() do
cgi.head{ cgi.title{"TITLE"} } +
cgi.body() do
cgi.form() do......HTML(
"params: " + cgi.params.inspect + "\n" +
"cookies: " + cgi.cookies.inspect + "\n" +
ENV.collect() do |key, value|
key + " --> " + value + "\n"
end.join("")
)
end
end
end
end
# HTML生成メソッドを追加
CGI.new("html... -
rss (109.0)
-
RSS を扱うためのライブラリです。
...ple"
maker.channel.description = "Example Site"
maker.channel.link = "http://example.com/"
end
もし,
* http://example.com/article.htmlにある
* Sample Articleというタイトルの
エントリを含めたければ以下のようにします.
require "rss"
rss = RSS:......iption = "Example Site"
maker.channel.link = "http://example.com/"
item = maker.items.new_item
item.link = "http://example.com/article.html"
item.title = "Sample Article"
end
===== 更新時刻を追加
もし,先のエントリが
* 2004/11/1 10:10
のものならこう......n = "Example Site"
maker.channel.link = "http://example.com/"
maker.items.new_item do |item|
item.link = "http://example.com/article.html"
item.title = "Sample Article"
item.date = Time.parse("2004/11/1 10:10")
end
end
サンプル中の
item.date = ...
は
i... -
cgi
/ session (103.0) -
CGI のセッション管理を行うライブラリ。
...てください。
セッション情報ファイルは 0600 で作成されるようになりました。
=== CGI::HtmlExtension#form の出力
CGI::Session.new 後の CGI::HtmlExtension#form は、セッション ID を
埋め込んだ隠しフィールドを自動出力するようになりま......ます。
CGI::HtmlExtension#form を使い、<INPUT TYPE="submit"> でページ遷移をするようにすれば、
クッキーが使えない環境でのセッション維持に利用できます。
#!/usr/bin/ruby
require 'cgi'
require 'cgi/session'
cgi = CGI.new('html3')
File.umask......(0077)
session = CGI::Session.new(cgi)
cgi.out('charset'=>'euc-jp') {
html = cgi.html {
cgi.head { cgi.title {'Form Demo'} }
cgi.body {
cgi.form('action'=>"#{CGI.escapeHTML(cgi.script_name)}") {
cgi.p {
'あなたの名前は?' +
cgi.te... -
win32ole (55.0)
-
Microsoft Windows で COM や ActiveX を扱うためのライブラリです。
...リです。
* http://suke.my.coocan.jp/ruby/win32ole/index.html
* http://pub.cozmixng.org/~the-rwiki/rw-cgi.rb?cmd=view;name=Win32OLE
* http://objectclub.jp/community/memorial/homepage3.nifty.com/masarl/article/ruby-win32ole.html
* Rubyist Magazine https://magazine.rubyist.net/
* Win32......rubyist.net/articles/0003/0003-Win32OLE.html
* Win32OLE 活用法【第 2 回】 Excel https://magazine.rubyist.net/articles/0004/0004-Win32OLE.html
* Win32OLE 活用法【第 3 回】 ADODB https://magazine.rubyist.net/articles/0005/0005-Win32OLE.html
* Win32OLE 活用法【第 4 回】......t.net/articles/0006/0006-Win32OLE.html
* Win32OLE 活用法【第 5 回】 Outlook https://magazine.rubyist.net/articles/0007/0007-Win32OLE.html
* Win32OLE 活用法【第 6 回】 Web 自動巡回 https://magazine.rubyist.net/articles/0008/0008-Win32OLE.html
* Win32OLE 活用法【第 7... -
net
/ http (49.0) -
汎用データ転送プロトコル HTTP を扱うライブラリです。 実装は 2616 に基きます。
...'/index.html')
//}
//emlist[例2: URI を使う][ruby]{
require 'net/http'
require 'uri'
print Net::HTTP.get(URI.parse('http://www.example.com/index.html'))
//}
//emlist[例3: より汎用的な例][ruby]{
require 'net/http'
require 'uri'
url = URI.parse('http://www.example.com/index.html')
res =......Net::HTTP.start(url.host, url.port) {|http|
http.get('/index.html')
}
puts res.body
//}
//emlist[例4: 上の例よりさらに汎用的な例][ruby]{
require 'net/http'
url = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(url.path)
res = Net::HTTP.start(url.host, url.p......==== Basic 認証
//emlist[例][ruby]{
require 'net/http'
Net::HTTP.start('www.example.com') {|http|
req = Net::HTTP::Get.new('/secret-page.html')
req.basic_auth 'account', 'password'
response = http.request(req)
print response.body
}
//}
=== フォームの値の区切り文字に...