るりまサーチ

最速Rubyリファレンスマニュアル検索!
258件ヒット [101-200件を表示] (0.026秒)
トップページ > クエリ:to_s[x] > 種類:特異メソッド[x]

別のキーワード

  1. _builtin to_s
  2. openssl to_der
  3. openssl to_s
  4. _builtin to_a
  5. openssl to_pem

ライブラリ

オブジェクト

キーワード

検索結果

<< < 1 2 3 > >>

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"...

絞り込み条件を変える

<< < 1 2 3 > >>