るりまサーチ

最速Rubyリファレンスマニュアル検索!
237件ヒット [1-100件を表示] (0.047秒)
トップページ > クエリ: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 > >>

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 # => "&lt;&amp;"
p REXML::Text.new("&lt;&amp;", false, nil, false).to_s # => "&amp;lt;&amp;amp;"
p REXML::Text.new("&lt;&amp;", false, nil, true).to_s # => "&lt;&amp;"
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 # => "&amp;&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
//}...

絞り込み条件を変える

<< 1 2 3 > >>