237件ヒット
[1-100件を表示]
(0.105秒)
ライブラリ
- ビルトイン (66)
- date (22)
-
irb
/ inspector (11) - openssl (33)
- rake (22)
- readline (11)
-
rexml
/ document (22) -
shell
/ command-processor (6) - uri (44)
クラス
- DateTime (22)
- File (11)
-
IRB
:: Inspector (11) -
OpenSSL
:: BN (33) -
REXML
:: CData (11) -
REXML
:: Text (11) -
Rake
:: InvocationChain (22) - Range (11)
-
Shell
:: CommandProcessor (6) - Symbol (11)
-
URI
:: FTP (22) -
URI
:: LDAP (22)
オブジェクト
- ENV (11)
-
Readline
:: HISTORY (11) - main (22)
キーワード
-
add
_ delegate _ command _ to _ shell (6) -
all
_ symbols (11) - append (11)
- build (44)
-
def
_ inspector (11) - inspect (11)
- lchmod (11)
- new (77)
- parse (11)
- strptime (11)
検索結果
先頭5件
-
ENV
. to _ s -> String (18118.0) -
環境変数を文字列化します。 Hash#to_s と同じように動作します。
...環境変数を文字列化します。 Hash#to_s と同じように動作します。... -
Readline
:: HISTORY . to _ s -> "HISTORY" (18108.0) -
文字列"HISTORY"を返します。
...文字列"HISTORY"を返します。
例:
require 'readline'
Readline::HISTORY.to_s #=> "HISTORY"... -
main
. to _ s -> "main" (15102.0) -
"main" を返します。
"main" を返します。 -
Shell
:: CommandProcessor . add _ delegate _ command _ to _ shell(id) (6101.0) -
@todo
@todo
Shell 自体を初期化する時に呼び出されるメソッドです。
ユーザが使用することはありません。
@param id メソッド名を指定します。 -
REXML
:: Text . new(arg , respect _ whitespace = false , parent = nil , raw = nil , entity _ filter = nil , illegal = REXML :: Text :: NEEDS _ A _ SECOND _ CHECK) (37.0) -
テキストノードオブジェクトを生成します。
...EXML::Text.new("<&", false, nil, false).to_s # => "<&"
p REXML::Text.new("<&", false, nil, false).to_s # => "&lt;&amp;"
p REXML::Text.new("<&", false, nil, true).to_s # => "<&"
p REXML::Text.new("<&", false, nil, true).to_s # parse error
//}
//emlist[doctype が......= REXML::Document.new(<<EOS)
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE root [
<!ENTITY p "foobar publisher">
<!ENTITY % q "quzz">
]>
<root />
EOS
REXML::Text.new("&quzz", false, doc.root, false).to_s # => "&&q;"
REXML::Text.new("quzz", false, doc.root, true).to_s # => "quzz"
//}... -
File
. lchmod(mode , *filename) -> Integer (13.0) -
File.chmod と同様ですが、シンボリックリンクに関してリンクそのものの モードを変更します。
...生します。
//emlist[例][ruby]{
IO.write("testfile", "test")
File.symlink("testfile", "testlink")
File.lstat("testlink").ftype # => "link"
File.lchmod(0744, "testlink")
File.stat("testlink").mode.to_s(8) # => "100644"
File.lstat("testlink").mode.to_s(8) # => "120744"
//}... -
OpenSSL
:: BN . new(str , base=10) -> OpenSSL :: BN (13.0) -
文字列を多倍長整数オブジェクト(OpenSSL::BN)を生成します。
...を表す文字列
@param base 文字列から整数に変換するときの基数
@raise OpenSSL::BNError 変換に失敗した場合に発生します
反対に、OpenSSL::BN クラスのオブジェクトを文字列にするには、
OpenSSL::BN#to_s を用います。
@see OpenSSL::BN#to_s... -
REXML
:: CData . new(text , respect _ whitespace = true , parent = nil) -> REXML :: CData (13.0) -
text をテキストとして持つ CData オブジェクトを生成します。
...(REXML::CData.new("foo bar baz "))
doc.to_s # => "<root><![CDATA[foo bar baz ]]></root>\n"
doc = REXML::Document.new(<<EOS)
<root />
EOS
doc.root.add(REXML::CData.new("foo bar baz ", true))
doc.root.add(REXML::CData.new("foo bar baz ", false))
doc.to_s # => "<root><![CDATA[foo bar baz ]]... -
Rake
:: InvocationChain . new(task _ name , tail) (13.0) -
与えられたタスク名と一つ前の Rake::InvocationChain を用いて自身を初期化します。
...uby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
tail = Rake::InvocationChain.new("task_a", Rake::InvocationChain::EMPTY)
tail.to_s # => "TOP => task_a"
b = Rake::InvocationChain.new("task_b", tail)
b.to_s # => "TOP => task_a => task_b"
end
//}... -
Range
. new(first , last , exclude _ end = false) -> Range (13.0) -
first から last までの範囲オブジェクトを生成して返しま す。
...のオブジェクトの場合][ruby]{
MyInteger = Struct.new(:value) do
def succ
self.class.new(value + 1)
end
def <=>(other)
value <=> other.value
end
def to_s
value.to_s
end
end
Range.new(MyInteger.new(1), MyInteger.new(3)).each {|i| puts i }
# => 1
# 2
# 3
//}...