258件ヒット
[101-200件を表示]
(0.026秒)
ライブラリ
- ビルトイン (72)
- date (24)
-
irb
/ inspector (12) - openssl (36)
- rake (24)
- readline (12)
-
rexml
/ document (24) -
shell
/ command-processor (6) - uri (48)
クラス
- DateTime (24)
- File (12)
-
IRB
:: Inspector (12) -
OpenSSL
:: BN (36) -
REXML
:: CData (12) -
REXML
:: Text (12) -
Rake
:: InvocationChain (24) - Range (12)
-
Shell
:: CommandProcessor (6) - Symbol (12)
-
URI
:: FTP (24) -
URI
:: LDAP (24)
オブジェクト
- ENV (12)
-
Readline
:: HISTORY (12) - main (24)
キーワード
-
add
_ delegate _ command _ to _ shell (6) -
all
_ symbols (12) - append (12)
- build (48)
-
def
_ inspector (12) - inspect (12)
- lchmod (12)
- new (84)
- parse (12)
- strptime (12)
検索結果
先頭5件
- Rake
:: InvocationChain . new(task _ name , tail) - Range
. new(first , last , exclude _ end = false) -> Range - Symbol
. all _ symbols -> [Symbol] - DateTime
. parse(str = & # 39;-4712-01-01T00:00:00+00:00& # 39; , complete = true , start = Date :: ITALY) -> DateTime - DateTime
. strptime(str = & # 39;-4712-01-01T00:00:00+00:00& # 39; , format = & # 39;%FT%T%z& # 39; , start = Date :: ITALY) -> DateTime
-
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
//}... -
Symbol
. all _ symbols -> [Symbol] (13.0) -
定義済みの全てのシンボルオブジェクトの配列を返します。
...nd
p Symbol.all_symbols.select{|sym|sym.to_s.include? 'make'}
#=> [:make_1, :make_2]
re = #確実に生成されるように代入操作を行う
:make_1,
:'make_2',
:"#{number}",
'make_4'.intern
p Symbol.all_symbols.select{|sym|sym.to_s.include? 'make'}
#=> [:make_1, :make_2,... -
DateTime
. parse(str = & # 39;-4712-01-01T00:00:00+00:00& # 39; , complete = true , start = Date :: ITALY) -> DateTime (7.0) -
与えられた日時表現を解析し、 その情報に基づいて DateTime オブジェクトを生成します。
...オ暦をつかい始めた日をあらわすユリウス日
@raise ArgumentError 正しくない日時になる組み合わせである場合に発生します。
例:
require 'date'
DateTime.parse('2001-02-03T12:13:14Z').to_s
# => "2001-02-03T12:13:14+00:00"
@see Date._parse, Date.parse... -
DateTime
. strptime(str = & # 39;-4712-01-01T00:00:00+00:00& # 39; , format = & # 39;%FT%T%z& # 39; , start = Date :: ITALY) -> DateTime (7.0) -
与えられた雛型で日時表現を解析し、 その情報に基づいて DateTime オブジェクトを生成します。
...すユリウス日
@raise ArgumentError 正しくない日時になる組み合わせである場合に発生します。
例:
require 'date'
DateTime.strptime('2001-02-03T12:13:14Z').to_s
# => "2001-02-03T12:13:14+00:00"
@see Date.strptime, DateTime._strptime, strptime(3), Date#strftime... -
IRB
:: Inspector . def _ inspector(key , arg = nil) { |v| . . . } -> object (7.0) -
新しい実行結果の出力方式を定義します。
...ロックを指定しない場合には、実行結果の出力のための手続きオ
ブジェクトを指定します。
例.
# .irbrc
IRB::Inspector.def_inspector([:test]){ |v| v.to_s * 2 }
$ irb --inspect test
irb(main):001:0> :abc # => abcabc
@see lib:irb#inspect_mode... -
Rake
:: InvocationChain . append(task _ name , chain) -> Rake :: InvocationChain (7.0) -
与えられたタスク名を第二引数の Rake::InvocationChain に追加します。
...e::InvocationChain のインスタンスを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
chain = Rake::InvocationChain::EMPTY
b = Rake::InvocationChain.append("task_a", chain)
b.to_s # => "TOP => task_a"
end
//}... -
URI
:: FTP . build(ary) -> URI :: FTP (7.0) -
引数で与えられた URI 構成要素から URI::FTP オブジェクトを生成します。 引数の正当性を検査します。
...:typecode => 'a'})
#=> #<URI::FTP:0x201bd9cc URL:ftp://www.example.com/path;type=a>
p URI::FTP.build([nil, 'example.com', nil, '/foo', 'i']).to_s
#=> 'ftp://example.com/%2Ffoo;type=i'
@param ary 構成要素を表す文字列の配列を与えます。要素は
//emlist{
[userinfo, h... -
URI
:: FTP . build(hash) -> URI :: FTP (7.0) -
引数で与えられた URI 構成要素から URI::FTP オブジェクトを生成します。 引数の正当性を検査します。
...:typecode => 'a'})
#=> #<URI::FTP:0x201bd9cc URL:ftp://www.example.com/path;type=a>
p URI::FTP.build([nil, 'example.com', nil, '/foo', 'i']).to_s
#=> 'ftp://example.com/%2Ffoo;type=i'
@param ary 構成要素を表す文字列の配列を与えます。要素は
//emlist{
[userinfo, h... -
URI
:: LDAP . build(ary) -> URI :: LDAP (7.0) -
引数で与えられた URI 構成要素から URI::LDAP オブジェクトを生成します。 引数の正当性を検査します。
...ope, :filter, :extensions
//}
のいずれかです。
@raise URI::InvalidComponentError 各要素が適合しない場合に発生します。
例:
require 'uri'
p URI::LDAP.build(["example.com", "1", "/a", "b", "c", "d", "e=f"]).to_s
#=> "ldap://example.com:1/a?b?c?d?e=f"...