356件ヒット
[1-100件を表示]
(0.161秒)
種類
- インスタンスメソッド (290)
- 特異メソッド (55)
- モジュール関数 (11)
ライブラリ
- ビルトイン (44)
- json (11)
- openssl (22)
- pathname (42)
- rake (11)
-
rexml
/ document (110) -
shell
/ filter (6) - stringio (11)
-
webrick
/ httpresponse (44) -
webrick
/ log (22) - win32ole (33)
クラス
- BasicObject (11)
-
OpenSSL
:: BN (22) - Pathname (42)
-
REXML
:: CData (11) -
REXML
:: Child (22) -
REXML
:: Element (33) -
REXML
:: Elements (33) -
REXML
:: Text (11) -
Rake
:: InvocationChain (11) - Range (11)
-
Shell
:: Filter (6) - StringIO (11)
- Thread (11)
-
WEBrick
:: BasicLog (22) -
WEBrick
:: HTTPResponse (44) -
WIN32OLE
_ EVENT (11) -
WIN32OLE
_ PARAM (22)
モジュール
キーワード
- << (22)
- String (11)
- []= (11)
- add (11)
-
add
_ element (11) -
add
_ namespace (22) - basename (11)
- body= (11)
- chunked= (11)
-
content
_ length (11) -
content
_ length= (11) - fatal (11)
- find (20)
- handler= (11)
-
method
_ missing (11) - name (11)
-
next
_ sibling= (11) -
previous
_ sibling= (11) -
set
_ trace _ func (11) -
to
_ json (11) - write (11)
- | (6)
検索結果
先頭5件
- Rake
:: InvocationChain . new(task _ name , tail) - WIN32OLE
_ PARAM # to _ s -> String - REXML
:: Text . new(arg , respect _ whitespace = false , parent = nil , raw = nil , entity _ filter = nil , illegal = REXML :: Text :: NEEDS _ A _ SECOND _ CHECK) - Range
. new(first , last , exclude _ end = false) -> Range - OpenSSL
:: BN # to _ s(base=10) -> String
-
Rake
:: InvocationChain . new(task _ name , tail) (24237.0) -
与えられたタスク名と一つ前の Rake::InvocationChain を用いて自身を初期化します。
...e::InvocationChain を用いて自身を初期化します。
@param task_name タスク名を指定します。
@param tail 一つ前の Rake::InvocationChain を指定します。
//emlist[][ruby]{
# 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
//}... -
WIN32OLE
_ PARAM # to _ s -> String (21225.0) -
パラメータ名を取得します。
...ータ名を返します。名前付き引数形式でメソッドを呼び出すときに指定します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Workbook')
method = WIN32OLE_METHOD.new(tobj, 'SaveAs')
param1 = method.params[0]
puts param1.name # => Filename... -
REXML
:: Text . new(arg , respect _ whitespace = false , parent = nil , raw = nil , entity _ filter = nil , illegal = REXML :: Text :: NEEDS _ A _ SECOND _ CHECK) (18421.0) -
テキストノードオブジェクトを生成します。
...クトの場合はその内容が複製されます。
respect_whitespace に真を指定すると、arg に含まれる空白文字は保存されます。
偽の場合は空白はまとめられます。
raw は true, false, nil のいずれかを指定し、生成されるテキストノード......* ' '
illegal は内部用なので使わないでください。
@param arg テキストデータ(文字列)もしくは元データの REXML::Text オブジェクト
@param respect_whitespace 空白を保存するかどうかを決める真偽値
@param parent 親ノード
@param raw テ......値
@param entity_filter 置換したい実体の名前の配列
@param illegal ライブラリ内部用
@raise RuntimeError テキストがXMLのテキストとして不正な
文字を含んでいる場合に発生します。
//emlist[doctype なしの場合][ruby]{
p REXML::Text.new("<&"... -
Range
. new(first , last , exclude _ end = false) -> Range (18309.0) -
first から last までの範囲オブジェクトを生成して返しま す。
...first から last までの範囲オブジェクトを生成して返しま
す。
exclude_end が真ならば終端を含まない範囲オブジェクトを生
成します。exclude_end 省略時には終端を含みます。
@param first 最初のオブジェクト
@param last 最後のオブ......ト
@param exclude_end 真をセットした場合終端を含まない範囲オブジェクトを生成します
@raise ArgumentError first <=> last が nil の場合に発生します
//emlist[例: 整数の範囲オブジェクトの場合][ruby]{
Range.new(1, 10) # => 1..10
Range.new(1,......), IPAddr.new("192.0.2.3")).each {|ip| puts ip}
# => 192.0.2.1
# 192.0.2.2
# 192.0.2.3
//}
//emlist[例: 自作のオブジェクトの場合][ruby]{
MyInteger = Struct.new(:value) do
def succ
self.class.new(value + 1)
end
def <=>(other)
value <=> other.value
end
def to_s... -
OpenSSL
:: BN # to _ s(base=10) -> String (18303.0) -
自身を表す文字列を返します。
...big-endianの符号無し整数のバイナリ列
0 MPI形式の文字列(バイト列)
@param base 文字列への変換方法(基数)
@raise OpenSSL::BNError 変換に失敗した場合に発生します
//emlist[][ruby]{
require 'openssl'
p 10.to_bn.to_s # => "10"
p (-5).to_bn.to_s #......p 0.to_bn.to_s(16) # => "0"
p 9.to_bn.to_s(16) # => "09"
p 10.to_bn.to_s(16) # => "0A"
p 16.to_bn.to_s(16) # => "10"
p 26.to_bn.to_s(16) # => "1A"
p 256.to_bn.to_s(16) # => "0100"
p 0.to_bn.to_s(2) # => ""
p 6.to_bn.to_s(2) # => "\x06"
p 7.to_bn.to_s(2) # => "\a"
p 0.to_bn.to_s(0) # => "\......x00\x00\x00\x00"
p 6.to_bn.to_s(0) # => "\x00\x00\x00\x01\x06"
p 7.to_bn.to_s(0) # => "\x00\x00\x00\x01\a"
//}
反対に、文字列から OpenSSL::BN クラスのインスタンスを作るには
OpenSSL::BN.new を用います。
@see OpenSSL::BN.new... -
REXML
:: CData . new(text , respect _ whitespace = true , parent = nil) -> REXML :: CData (18261.0) -
text をテキストとして持つ CData オブジェクトを生成します。
...t_whitespace に真を指定すると、text に含まれる空白文字は保存されます。
偽の場合は空白はまとめられます。
@param text テキスト文字列
@param respect_whitespace 空白を保存するかどうかを決める真偽値
@param parent 親ノード
//emlist[]......[ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root />
EOS
doc.root.add(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 ]]><![CDATA[foo bar baz ]]></root>\n"
//}... -
OpenSSL
:: BN . new(integer) -> OpenSSL :: BN (18221.0) -
整数オブジェクト(Integer)から多倍長整数オブジェクト (OpenSSL::BN)を生成します。
...整数オブジェクト(Integer)から多倍長整数オブジェクト
(OpenSSL::BN)を生成します。
@param integer 整数オブジェクト
@see Integer#to_bn... -
Kernel
. # String(arg) -> String (6236.0) -
引数を文字列(String)に変換した結果を返します。
...引数を文字列(String)に変換した結果を返します。
arg.to_s を呼び出して文字列に変換します。
arg が文字列の場合、何もせず arg を返します。
@param arg 変換対象のオブジェクトです。
@raise TypeError to_s の返り値が文字列でなけ......れば発生します。
//emlist[例][ruby]{
class Foo
def to_s
"hogehoge"
end
end
arg = Foo.new
p String(arg) #=> "hogehoge"
//}
@see Object#to_s,String... -
BasicObject
# method _ missing(name , *args) -> object (6130.0) -
呼びだされたメソッドが定義されていなかった時、Rubyインタプリタがこのメソッド を呼び出します。
...@param name 未定義メソッドの名前(シンボル)です。
@param args 未定義メソッドに渡された引数です。
@return ユーザー定義の method_missing メソッドの返り値が未定義メソッドの返り値で
あるかのように見えます。
//emlist[例][......Foo
def initialize(data)
@data = data
end
def method_missing(name, lang)
if name.to_s =~ /\Afind_(\d+)_in\z/
if @data[lang]
p @data[lang][$1.to_i]
else
raise "#{lang} unknown"
end
else
super
end
end
end
dic = Foo.new({:English => %w(z......%w(nulo unu du)})
dic.find_2_in :Esperanto #=> "du"
//}
[注意] このメソッドを override する場合は対象のメソッド名に対して
Object#respond_to? が真を返すようにしてください。
そのためには、Object#respond_to_missing? も同様に override する必
要が... -
REXML
:: Child # next _ sibling=(other) (6130.0) -
other を self の次の隣接ノードとします。
...other を挿入します。
@param other 挿入するノード
//emlist[][ruby]{
require 'rexml/document'
a = REXML::Element.new("a")
b = a.add_element("b")
c = REXML::Element.new("c")
b.next_sibling = c
d = REXML::Element.new("d")
b.previous_sibling = d
p a.to_s # => "<a><d/><b/><c/></a>"
//}...