84件ヒット
[1-84件を表示]
(0.130秒)
別のキーワード
ライブラリ
- ビルトイン (12)
- mkmf (12)
-
net
/ http (24) -
rexml
/ document (24) - un (12)
クラス
-
Net
:: HTTP (24) - Proc (12)
-
REXML
:: Instruction (24)
モジュール
- Kernel (24)
キーワード
- content (12)
-
create
_ makefile (12) - ln (12)
- post (24)
-
source
_ location (12)
検索結果
先頭5件
- REXML
:: Instruction # target -> String - Kernel
# create _ makefile(target , srcprefix = nil) -> true - Net
:: HTTP # post(path , data , header = nil , dest = nil) -> Net :: HTTPResponse - Net
:: HTTP # post(path , data , header = nil , dest = nil) {|body _ segment| . . . . } -> Net :: HTTPResponse - Proc
# source _ location -> [String , Integer] | nil
-
REXML
:: Instruction # target -> String (18114.0) -
XML 処理命令のターゲットを返します。
...ットを返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/css" href="style.css"?>
<root />
EOS
doc[2] # => <?p-i xml-stylesheet ...?>
doc[2].target # => "xml-stylesheet"
doc[2].content # =... -
Kernel
# create _ makefile(target , srcprefix = nil) -> true (120.0) -
@todo
...ラリを
ビルドするための Makefile を生成します。
extconf.rb は普通このメソッドの呼び出しで終ります。
@param target ターゲットとなる拡張ライブラリの名前を指定します。
例えば、拡張ライブラリで "Init_foo" とい......、拡張ライブラリは
'test' ディレクトリにインストールされます。この拡張ライブ
ラリを Ruby スクリプトから使用するときは
"require 'test/foo'" とする必要があります。
@param srcprefix ソースコー......test/
foo.c
このようにします。
require 'mkmf'
create_makefile('test/foo', 'test')
このようにして作った Makefile で 'make install' すると拡張ライブラリは、
以下のパスにインストールされます。
/path/to/ruby/sitearchdir/test/foo.so... -
Net
:: HTTP # post(path , data , header = nil , dest = nil) -> Net :: HTTPResponse (43.0) -
サーバ上の path にあるエンティティに対し文字列 data を POST で送ります。
...[ruby]{
# net/http version 1.1
response, body = http.post('/cgi-bin/search.rb', 'query=subject&target=ruby')
# version 1.2
response = http.post('/cgi-bin/search.rb', 'query=subject&target=ruby')
# using block
File.open('save.html', 'w') {|f|
http.post('/cgi-bin/search.rb', 'query=subject&target=... -
Net
:: HTTP # post(path , data , header = nil , dest = nil) {|body _ segment| . . . . } -> Net :: HTTPResponse (43.0) -
サーバ上の path にあるエンティティに対し文字列 data を POST で送ります。
...[ruby]{
# net/http version 1.1
response, body = http.post('/cgi-bin/search.rb', 'query=subject&target=ruby')
# version 1.2
response = http.post('/cgi-bin/search.rb', 'query=subject&target=ruby')
# using block
File.open('save.html', 'w') {|f|
http.post('/cgi-bin/search.rb', 'query=subject&target=... -
Proc
# source _ location -> [String , Integer] | nil (31.0) -
ソースコードのファイル名と行番号を配列で返します。
...クトが ruby で定義されていない(つまりネイティブ
である)場合は nil を返します。
//emlist[例][ruby]{
# /path/to/target.rb を実行
proc {}.source_location # => ["/path/to/target.rb", 1]
proc {}.source_location # => ["/path/to/target.rb", 2]
(ev... -
REXML
:: Instruction # content -> String | nil (19.0) -
XML 処理命令の内容を返します。
...容を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/css" href="style.css"?>
<?foobar?>
<root />
EOS
doc[2] # => <?p-i xml-stylesheet ...?>
doc[2].target # => "xml-stylesheet"
doc[2].con......tent # => "type=\"text/css\" href=\"style.css\""
doc[4].target # => "foobar"
doc[4].content # => nil
//}... -
Kernel
# ln -> () (13.0) -
ファイルへのリンクを作成します。
...ファイルへのリンクを作成します。
ruby -run -e ln -- [OPTION] TARGET LINK_NAME
-s ハードリンクの代わりにシンボリックリンクを作成します
-f LINK_NAME を上書きします
-v 詳細表示
@see ln(1)...