201件ヒット
[201-201件を表示]
(0.054秒)
クラス
-
ARGF
. class (8) - Array (25)
- BasicObject (4)
- Bignum (3)
- Binding (1)
- Complex (1)
-
Enumerator
:: Lazy (11) - Exception (2)
- FalseClass (3)
- File (1)
- Fixnum (1)
- Float (3)
- Hash (13)
- Integer (2)
- MatchData (2)
- Method (3)
- Module (1)
- Numeric (6)
- Object (7)
- Proc (5)
-
Process
:: Status (1) - Random (3)
- Range (12)
- Rational (1)
- Regexp (3)
-
RubyVM
:: InstructionSequence (2) - String (23)
- Struct (2)
- Symbol (3)
- Thread (1)
- Time (4)
- TrueClass (3)
- UnboundMethod (4)
モジュール
- Comparable (1)
- Enumerable (36)
キーワード
- != (1)
- % (1)
- & (2)
- === (9)
- [] (7)
- ^ (2)
-
_ _ id _ _ (1) - assoc (2)
-
backtrace
_ locations (1) - call (1)
- chunk (2)
-
chunk
_ while (1) - clone (2)
- collect (1)
- count (6)
- crypt (1)
- delete (2)
-
delete
_ if (2) - detect (2)
- disasm (1)
- disassemble (1)
- div (1)
- divmod (2)
- dump (1)
- dup (1)
- each (4)
-
each
_ line (4) - eql? (10)
- equal? (1)
- find (2)
-
find
_ all (2) -
find
_ index (6) - getgm (1)
- getlocal (2)
- getutc (1)
- group (1)
-
has
_ value? (1) - hash (4)
- id2name (1)
- include? (3)
- index (3)
- intern (1)
- itself (1)
-
keep
_ if (2) - lazy (2)
-
local
_ variable _ defined? (1) - lstat (1)
- map (1)
-
marshal
_ dump (1) -
marshal
_ load (1) - max (8)
- member? (2)
- min (8)
- modulo (1)
- none? (2)
- one? (2)
- pack (1)
- partition (2)
- rassoc (2)
- reject (4)
- reject! (2)
- remainder (1)
- rindex (3)
- select (2)
- select! (2)
- slice (6)
-
slice
_ after (2) -
slice
_ before (3) -
slice
_ when (1) - sort (2)
- split (1)
- sum (1)
-
to
_ h (1) -
to
_ hash (1) -
to
_ proc (1) -
to
_ s (1) -
to
_ sym (1) -
unicode
_ normalize! (1) - unpack (1)
- value? (1)
- yield (1)
- | (2)
検索結果
-
String
# slice(substr) -> String | nil (13.0) -
self が substr を含む場合、一致した文字列を新しく作って返します。 substr を含まなければ nil を返します。
self が substr を含む場合、一致した文字列を新しく作って返します。
substr を含まなければ nil を返します。
@param substr 取得したい文字列のパターン。文字列
//emlist[例][ruby]{
substr = "bar"
result = "foobar"[substr]
p result # => "bar"
p substr.equal?(result) # => false
//}