132件ヒット
[1-100件を表示]
(0.165秒)
ライブラリ
- ビルトイン (24)
-
irb
/ context (36) - json (12)
- openssl (12)
- pathname (12)
-
rexml
/ document (36)
クラス
-
IRB
:: Context (36) -
OpenSSL
:: X509 :: Extension (12) - Pathname (12)
-
REXML
:: ExternalEntity (12) -
REXML
:: Text (24) - Symbol (24)
モジュール
検索結果
先頭5件
-
REXML
:: Text # to _ s -> String (27428.0) -
テキストの内容を正規化(すべての実体をエスケープ)された状態で返します。
...トとして妥当です。
結果は REXML::Text.new で指定した entity_filter を反映しています。
@see REXML::Text#value
//emlist[][ruby]{
require 'rexml/document'
t = REXML::Text.new("< & foobar", false, nil, false)
t.to_s # => "< & foobar"
t.value # => "< & foobar"
//}... -
OpenSSL
:: X509 :: Extension # to _ s -> String (27404.0) -
拡張領域の内容を、文字列表現で返します。
拡張領域の内容を、文字列表現で返します。 -
REXML
:: ExternalEntity # to _ s -> String (27404.0) -
宣言を文字列化します。
宣言を文字列化します。 -
IRB
:: Context # to _ s -> String (24406.0) -
自身を人間に読みやすい文字列にして返します。
自身を人間に読みやすい文字列にして返します。 -
IRB
:: Context # _ _ to _ s _ _ -> String (15404.0) -
自身を文字列表現にしたオブジェクトを返します。
自身を文字列表現にしたオブジェクトを返します。 -
Pathname
# extname -> String (12419.0) -
File.extname(self.to_s) と同じです。
...File.extname(self.to_s) と同じです。
@see File.extname... -
JSON
:: Generator :: GeneratorMethods :: Object # to _ json(state _ or _ hash = nil) -> String (12325.0) -
自身を to_s で文字列にした結果を JSON 形式の文字列に変換して返します。
...自身を to_s で文字列にした結果を JSON 形式の文字列に変換して返します。
このメソッドはあるオブジェクトに to_json メソッドが定義されていない場合に使用する
フォールバックのためのメソッドです。
@param state_or_hash 生......State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
class Person
attr :name, :age
def initialize(name, age)
@name, @age = name, age
end
end
tanaka = Person.new("ta......naka", 29)
tanaka.to_json # => "\"#<Person:0x00007ffdec0167c8>\""
tanaka.method(:to_json).owner # => JSON::Ext::Generator::GeneratorMethods::Object
//}... -
Symbol
# next -> Symbol (12219.0) -
シンボルに対応する文字列の「次の」文字列に対応するシンボルを返します。
...シンボルに対応する文字列の「次の」文字列に対応するシンボルを返します。
(self.to_s.next.intern と同じです。)
:a.next # => :b
:foo.next # => :fop
@see String#succ... -
IRB
:: Context # inspect -> String (9306.0) -
自身を人間に読みやすい文字列にして返します。
自身を人間に読みやすい文字列にして返します。