ライブラリ
- English (24)
- ビルトイン (1473)
- json (12)
-
json
/ add / exception (12) -
net
/ http (60) - openssl (12)
- optparse (48)
- prettyprint (12)
- psych (27)
- readline (12)
- rexml (12)
-
rubygems
/ command (12) - shell (30)
-
shell
/ command-processor (18) -
shell
/ filter (18) - socket (72)
- strscan (84)
- syslog (48)
- thread (12)
- time (60)
- timeout (21)
- tmpdir (24)
- tracer (24)
- win32ole (24)
- zlib (324)
クラス
- Array (84)
- BasicSocket (12)
- Dir (24)
-
Encoding
:: Converter (48) -
Encoding
:: InvalidByteSequenceError (24) -
Encoding
:: UndefinedConversionError (12) - Enumerator (12)
-
Enumerator
:: ArithmeticSequence (28) - Exception (140)
- File (36)
-
File
:: Stat (12) - FrozenError (6)
-
Gem
:: Command (12) - IO (12)
- Integer (23)
-
JSON
:: State (12) - KeyError (16)
- LoadError (12)
- LocalJumpError (24)
- MatchData (48)
- Module (12)
- Mutex (2)
- NameError (44)
-
Net
:: HTTPResponse (12) - NoMethodError (12)
- Object (12)
-
OpenSSL
:: SSL :: SSLContext (12) - OptionParser (48)
- PrettyPrint (12)
- Random (36)
- Range (91)
- Regexp (48)
- Shell (30)
-
Shell
:: CommandProcessor (18) -
Shell
:: Filter (18) - SignalException (24)
- Socket (36)
- StopIteration (12)
- String (144)
- StringScanner (84)
- SystemCallError (24)
- SystemExit (24)
- Thread (72)
-
Thread
:: Mutex (10) -
Thread
:: Queue (36) -
Thread
:: SizedQueue (36) - Time (60)
- TracePoint (24)
- Tracer (24)
- UDPSocket (12)
- UNIXServer (12)
- UncaughtThrowError (33)
- WIN32OLE (24)
-
Zlib
:: GzipReader (276) -
Zlib
:: GzipWriter (24) -
Zlib
:: Inflate (12)
モジュール
- Comparable (12)
- Kernel (168)
-
Net
:: HTTPExceptions (12) -
Net
:: HTTPHeader (36) - Process (12)
- Psych (27)
- Readline (12)
- Signal (24)
- Syslog (48)
- Timeout (21)
キーワード
-
$ ERROR _ INFO (12) -
$ ERROR _ POSITION (12) -
/ (11) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - == (19)
- === (12)
- =~ (12)
- Fiber (12)
- GzipReader (12)
- Interrupt (12)
- Mutex (12)
-
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 5 . 0 (8) - ParseException (12)
- Ruby プログラムの実行 (12)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (12)
- Ruby用語集 (12)
- Status (12)
- Thread (12)
- UndefinedConversionError (12)
- [] (138)
- abort (24)
- accept (24)
-
accept
_ nonblock (12) - args (12)
- at (12)
- backtrace (12)
-
backtrace
_ locations (12) -
beginning
_ of _ line? (12) - begins? (12)
- bol? (12)
-
ca
_ file= (12) - cause (12)
-
check
_ circular? (12) - clamp (12)
- close (12)
-
connect
_ nonblock (12) - cover? (19)
- delete (12)
- deq (24)
- div (12)
- each (24)
-
each
_ byte (24) -
each
_ line (24) - end (31)
- eof (12)
- eof? (12)
- errno (12)
-
error
_ bytes (12) -
error
_ char (12) - exception (24)
- exit (24)
- exit! (12)
-
exit
_ value (12) - fail (36)
- fetch (72)
- finish (12)
- first (24)
-
fixed
_ encoding? (12) - format (12)
- getc (12)
- getoptlong (12)
- getpeereid (12)
- gets (12)
-
handle
_ interrupt (12) - hash (7)
- httpdate (12)
-
incomplete
_ input? (12) -
initialize
_ copy (12) - inspect (12)
- irb (12)
- iso8601 (12)
- key (8)
- kill (12)
- last (24)
-
last
_ match (24) - lineno (12)
- lineno= (12)
- load (15)
-
local
_ variables (10) - logger (12)
- mkdir (18)
- mktmpdir (24)
- name (12)
- new (24)
- next (12)
- offset (24)
-
ole
_ get _ methods (12) -
ole
_ query _ interface (12) - open (48)
- open! (12)
- parse (12)
- path (12)
- peek (12)
- peep (12)
- pointer= (12)
- pop (24)
- pos= (12)
-
primitive
_ convert (48) -
public
_ constant (12) - raise (48)
-
raised
_ exception (12) - rand (36)
-
rb
_ compile _ cstr (12) -
rb
_ compile _ file (12) -
rb
_ compile _ string (12) - rdoc (12)
- read (12)
- readbyte (12)
- readchar (12)
- readline (24)
- readlines (12)
- reason (12)
- receiver (24)
-
recvfrom
_ nonblock (12) - reject (24)
- rename (12)
- reopen (12)
- require (12)
- response (12)
- result (12)
- rewind (12)
- rfc2822 (12)
- rfc822 (12)
- rss (12)
-
ruby 1
. 6 feature (12) -
set
_ backtrace (12) -
set
_ dictionary (12) -
set
_ get _ line _ procs (24) - setpriority (12)
- shift (24)
- signm (12)
- signo (12)
- slice (72)
- status (12)
- sticky? (12)
- success? (12)
- tag (11)
-
tcp
_ server _ loop (24) - terminate (12)
- test (18)
- throw (12)
- timeout (21)
-
to
_ json (12) -
to
_ s (35) - trap (24)
- tsort (12)
-
unalias
_ command (6) -
undef
_ system _ command (6) - ungetc (12)
- unlink (12)
- unlock (12)
- unscan (12)
- value (23)
- wrap (24)
- xmlschema (12)
- クラス/メソッドの定義 (12)
- スレッド (12)
- 制御構造 (12)
- 字句構造 (12)
検索結果
-
String
# slice(substr) -> String | nil (1.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
//}