374件ヒット
[101-200件を表示]
(0.172秒)
ライブラリ
- ビルトイン (362)
-
json
/ add / symbol (12)
キーワード
- <=> (12)
- =~ (12)
- [] (60)
- capitalize (12)
- casecmp (12)
- casecmp? (9)
- downcase (9)
- empty? (12)
-
end
_ with? (6) - id2name (12)
- inspect (12)
- intern (12)
- length (12)
- match (12)
- match? (9)
- name (5)
- next (12)
- size (12)
- slice (60)
-
start
_ with? (6) - succ (12)
- swapcase (9)
-
to
_ json (12) -
to
_ s (12) -
to
_ sym (12) - upcase (9)
検索結果
先頭5件
-
Symbol
# next -> Symbol (6108.0) -
シンボルに対応する文字列の「次の」文字列に対応するシンボルを返します。
...シンボルに対応する文字列の「次の」文字列に対応するシンボルを返します。
(self.to_s.next.intern と同じです。)
:a.next # => :b
:foo.next # => :fop
@see String#succ... -
Symbol
# start _ with?(*prefixes) -> bool (6108.0) -
self の先頭が prefixes のいずれかであるとき true を返します。
...とき true を返します。
(self.to_s.start_with?と同じです。)
@param prefixes パターンを表す文字列または正規表現 (のリスト)
@see Symbol#end_with?
@see String#start_with?
//emlist[][ruby]{
:hello.start_with?("hell") #=> true
:hello.start_with?(/H/i)......#=> true
# returns true if one of the prefixes matches.
:hello.start_with?("heaven", "hell") #=> true
:hello.start_with?("heaven", "paradise") #=> false
//}... -
Symbol
# to _ sym -> self (6108.0) -
self を返します。
...self を返します。
例:
:foo.intern # => :foo
@see String#intern... -
Symbol
# to _ s -> String (3216.0) -
シンボルに対応する文字列を返します。
...シンボルに対応する文字列を返します。
逆に、文字列に対応するシンボルを得るには
String#intern を使います。
p :foo.id2name # => "foo"
p :foo.id2name.intern == :foo # => true
@see String#intern......シンボルに対応する文字列を返します。
逆に、文字列に対応するシンボルを得るには
String#intern を使います。
p :foo.id2name # => "foo"
p :foo.id2name.intern == :foo # => true
@see String#intern
@see Symbol#name... -
Symbol
# size -> Integer (3114.0) -
シンボルに対応する文字列の長さを返します。
...シンボルに対応する文字列の長さを返します。
(self.to_s.length と同じです。)
:foo.length #=> 3
@see String#length, String#size... -
Symbol
# succ -> Symbol (3008.0) -
シンボルに対応する文字列の「次の」文字列に対応するシンボルを返します。
...シンボルに対応する文字列の「次の」文字列に対応するシンボルを返します。
(self.to_s.next.intern と同じです。)
:a.next # => :b
:foo.next # => :fop
@see String#succ... -
Symbol
# [](substr) -> String | nil (314.0) -
self が substr を含む場合、一致した文字列を新しく作って返します。
...self が substr を含む場合、一致した文字列を新しく作って返します。
(self.to_s[substr] と同じです。)
例:
:foobar.slice("foo") # => "foo"
:foobar.slice("baz") # => nil... -
Symbol
# slice(substr) -> String | nil (314.0) -
self が substr を含む場合、一致した文字列を新しく作って返します。
...self が substr を含む場合、一致した文字列を新しく作って返します。
(self.to_s[substr] と同じです。)
例:
:foobar.slice("foo") # => "foo"
:foobar.slice("baz") # => nil... -
Symbol
# [](range) -> String | nil (224.0) -
rangeで指定したインデックスの範囲に含まれる部分文字列を返します。
...rangeで指定したインデックスの範囲に含まれる部分文字列を返します。
(self.to_s[range] と同じです。)
@param range 取得したい文字列の範囲を示す Range オブジェクトを指定します。
:foo[0..1] # => "fo"
@see String#[] , String#slice...