220件ヒット
[1-100件を表示]
(0.098秒)
種類
- インスタンスメソッド (165)
- 特異メソッド (22)
- クラス (11)
- モジュール (11)
- ライブラリ (11)
ライブラリ
- ビルトイン (11)
-
cgi
/ html (22) - mkmf (33)
-
net
/ http (22) - nkf (11)
- resolv (22)
-
rexml
/ document (66) -
rexml
/ sax2listener (11) - un (11)
クラス
-
Net
:: HTTP (22) - Proc (11)
-
REXML
:: Instruction (55) -
Resolv
:: DNS :: Resource :: IN :: SRV (22)
モジュール
-
CGI
:: HtmlExtension (22) - Kernel (44)
-
REXML
:: SAX2Listener (11)
キーワード
- == (11)
- Instruction (11)
- NKF (11)
- a (22)
- content (11)
-
create
_ makefile (11) -
dir
_ config (11) - ln (11)
- modified? (11)
- new (22)
- post (22)
-
processing
_ instruction (11) -
source
_ location (11) - target= (11)
- yaml (11)
検索結果
先頭5件
-
Resolv
:: DNS :: Resource :: IN :: SRV # target -> Resolv :: DNS :: Name (21201.0) -
対象のホストのホスト名を返します。
対象のホストのホスト名を返します。 -
REXML
:: Instruction # target -> String (21107.0) -
XML 処理命令のターゲットを返します。
...L 処理命令のターゲットを返します。
//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-styl......esheet"
doc[2].content # => "type=\"text/css\" href=\"style.css\""
//}... -
REXML
:: Instruction # target=(value) (9201.0) -
XML 処理命令のターゲットを value に変更します。
...XML 処理命令のターゲットを value に変更します。
@param value 新たなターゲット(文字列)... -
Kernel
# create _ makefile(target , srcprefix = nil) -> true (6207.0) -
@todo
...@todo
Kernel#have_library などの各種検査の結果を元に、拡張ライブラリを
ビルドするための Makefile を生成します。
extconf.rb は普通このメソッドの呼び出しで終ります。
@param target ターゲットとなる拡張ライブラリの名前を指......として使用します。残りはトップレベルのディレクトリ名と見
なされ、生成された Makefile はそのディレクトリ構造に従い
ます。
例えば、'test/foo' を指定した場合、拡張ライブラリ....../
extconf.rb
test/
foo.c
このようにします。
require 'mkmf'
create_makefile('test/foo', 'test')
このようにして作った Makefile で 'make install' すると拡張ライブラリは、
以下のパスにインストールされます。
/path/to/ruby/s... -
Proc
# source _ location -> [String , Integer] | nil (6118.0) -
ソースコードのファイル名と行番号を配列で返します。
...は nil を返します。
//emlist[例][ruby]{
# /path/to/target.rb を実行
proc {}.source_location # => ["/path/to/target.rb", 1]
proc {}.source_location # => ["/path/to/target.rb", 2]
(eval "proc {}").source_location # => ["(eval)", 1]
method(:p).to_proc.source_locatio......n # => nil
//}
@see Method#source_location... -
Kernel
# ln -> () (6106.0) -
ファイルへのリンクを作成します。
...ファイルへのリンクを作成します。
ruby -run -e ln -- [OPTION] TARGET LINK_NAME
-s ハードリンクの代わりにシンボリックリンクを作成します
-f LINK_NAME を上書きします
-v 詳細表示
@see ln(1)... -
yaml (6054.0)
-
構造化されたデータを表現するフォーマットであるYAML (YAML Ain't Markup Language) を扱うためのライブラリです。
...あるYAML (YAML Ain't Markup Language) を扱うためのライブラリです。
//emlist[例1: 構造化された配列][ruby]{
require 'yaml'
data = ["Taro san", "Jiro san", "Saburo san"]
str_r = YAML.dump(data)
str_l = <<~YAML_EOT
---
- Taro san
- Jiro san
- Saburo san
YAML_EOT
p st......r_r == str_l # => true
//}
//emlist[例2: 構造化されたハッシュ][ruby]{
require 'yaml'
require 'date'
str_l = <<~YAML_EOT
Tanaka Taro: {age: 35, birthday: 1970-01-01}
Suzuki Suneo: {
age: 13,
birthday: 1992-12-21
}
YAML_EOT
str_r = {}
str_r["Tanaka Taro"] = {
"age" => 35......Date.new(1992, 12, 21)
}
p str_r == YAML.load(str_l) # => true
//}
//emlist[例3: 構造化されたログ][ruby]{
require 'yaml'
require 'stringio'
strio_r = StringIO.new(<<~YAML_EOT)
---
time: 2008-02-25 17:03:12 +09:00
target: YAML
version: 4
log: |
例を加えた。
アブ... -
Kernel
# dir _ config(target , idefault = nil , ldefault = nil) -> [String , String] (3391.0) -
configure オプション --with-TARGET-dir, --with-TARGET-include, --with-TARGET-lib をユーザが extconf.rb に指定できるようにします。
...configure オプション
--with-TARGET-dir,
--with-TARGET-include,
--with-TARGET-lib
をユーザが extconf.rb に指定できるようにします。
--with-TARGET-dir オプションは
システム標準ではない、
ヘッダファイルやライブラリがあるディレクトリをま......定するために使います。
ユーザが extconf.rb に --with-TARGET-dir=PATH を指定したときは
$CFLAGS に "-IPATH/include" を、
$LDFLAGS に "-LPATH/lib" を、
それぞれ追加します。
--with-TARGET-include オプションは
システム標準ではないヘッダファイ.......rb に --with-TARGET-include=PATH を指定したときは
$CFLAGS に PATH を追加します。
--with-TARGET-lib オプションは
システム標準ではないライブラリのディレクトリを指定するために使います。
ユーザが extconf.rb に --with-TARGET-lib=PATH を指... -
Kernel
# modified?(target , times) -> Time | nil (3255.0) -
target が times の全ての要素よりも新しい場合は target の更新時刻を返します。 そうでない場合は nil を返します。target が存在しない場合も nil を返します。
...
target が times の全ての要素よりも新しい場合は target の更新時刻を返します。
そうでない場合は nil を返します。target が存在しない場合も nil を返します。
@param target 対象のファイル名を指定します。
@param times Time の配列... -
REXML
:: Instruction . new(target , content = nil) -> REXML :: Instruction (3207.0) -
新たな Instruction オブジェクトを生成します。
...新たな Instruction オブジェクトを生成します。
@param target ターゲット
@param content 内容...