1325件ヒット
[1301-1325件を表示]
(0.076秒)
ライブラリ
- ビルトイン (463)
-
cgi
/ session (48) -
cgi
/ session / pstore (12) - csv (60)
- dbm (36)
- gdbm (48)
-
net
/ ftp (22) -
net
/ http (24) -
net
/ imap (12) -
net
/ pop (72) - observer (24)
- ostruct (12)
- pathname (24)
- pstore (12)
-
rexml
/ document (132) -
rinda
/ tuplespace (12) -
rubygems
/ dependency _ list (12) - sdbm (36)
- set (36)
- shell (12)
-
shell
/ command-processor (12) -
shell
/ filter (12) - tempfile (24)
-
webrick
/ httpauth / htdigest (12) -
webrick
/ httpauth / htpasswd (12) -
webrick
/ httpserver (12) -
webrick
/ httpservlet / abstract (72) -
win32
/ registry (36) -
yaml
/ dbm (24)
クラス
- Array (129)
- BasicObject (24)
-
CGI
:: Session (12) -
CGI
:: Session :: FileStore (12) -
CGI
:: Session :: MemoryStore (12) -
CGI
:: Session :: NullStore (12) -
CGI
:: Session :: PStore (12) -
CSV
:: Row (24) -
CSV
:: Table (36) - DBM (36)
- GDBM (48)
-
Gem
:: DependencyList (12) - Hash (182)
-
Net
:: FTP (12) -
Net
:: FTP :: MLSxEntry (10) -
Net
:: HTTP (12) -
Net
:: IMAP (12) -
Net
:: POP3 (36) -
Net
:: POPMail (36) - OpenStruct (12)
- PStore (12)
- Pathname (24)
-
REXML
:: Attributes (24) -
REXML
:: Element (36) -
REXML
:: Elements (24) -
REXML
:: Parent (48) -
Rinda
:: TupleSpace (12) - SDBM (36)
- Set (48)
- Shell (12)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) - String (116)
- Tempfile (24)
-
WEBrick
:: HTTPAuth :: Htdigest (12) -
WEBrick
:: HTTPAuth :: Htpasswd (12) -
WEBrick
:: HTTPServer :: MountTable (12) -
WEBrick
:: HTTPServlet :: AbstractServlet (72) -
Win32
:: Registry (36) -
YAML
:: DBM (24)
モジュール
-
Net
:: HTTPHeader (12) - Observable (24)
キーワード
-
_ _ send _ _ (24) - chomp (8)
- chomp! (8)
- chop (8)
- chop! (8)
- deletable? (10)
- delete! (24)
- delete? (12)
-
delete
_ all (48) -
delete
_ at (24) -
delete
_ attribute (12) -
delete
_ element (12) -
delete
_ field (12) -
delete
_ if (168) -
delete
_ key (12) -
delete
_ namespace (12) -
delete
_ observer (12) -
delete
_ observers (12) -
delete
_ passwd (24) -
delete
_ prefix (8) -
delete
_ prefix! (8) -
delete
_ suffix (8) -
delete
_ suffix! (8) -
delete
_ value (12) - deleted? (12)
-
do
_ DELETE (12) -
do
_ GET (12) -
do
_ HEAD (12) -
do
_ OPTIONS (12) -
do
_ POST (12) -
do
_ PUT (12) -
end
_ with? (8) - filter! (14)
-
keep
_ if (48) - length (12)
- notify (12)
- pack (21)
- reject (24)
- reject! (96)
-
remove
_ by _ name (12) - reset (12)
- rm (18)
- select! (24)
- size (12)
-
start
_ with? (8) - unlink (24)
- unpack (12)
検索結果
-
String
# chop -> String (7.0) -
文字列の最後の文字を取り除いた新しい文字列を生成して返します。 ただし、文字列の終端が "\r\n" であればその 2 文字を取り除きます。
...ばその 2 文字を取り除きます。
//emlist[例][ruby]{
p "string\n".chop # => "string"
p "string\r\n".chop # => "string"
p "string".chop # => "strin"
p "strin".chop # => "stri"
p "".chop # => ""
//}
@see String#chomp
@see String#chop!
@see String#delete_suffix... -
String
# chop! -> self | nil (7.0) -
文字列の最後の文字を取り除きます。 ただし、終端が "\r\n" であればその 2 文字を取り除きます。
...った場合は nil を返します。
//emlist[例][ruby]{
str = "string\r\n"
ret = str.chop!
ret # => "string"
str # => "string"
str.chop! # => "strin"
"".chop! # => nil
//}
@see String#chomp!
@see String#chop
@see String#delete_suffix!... -
String
# unpack(template) -> Array (7.0) -
Array#pack で生成された文字列を テンプレート文字列 template にしたがってアンパックし、 それらの要素を含む配列を返します。
...0\x00by".unpack('ccxxcc') # => [82, 117, 98, 121]
//}
: Hexダンプを数値の配列に変換する例
//emlist[][ruby]{
"61 62 63 64 65 66".delete(' ').lines.pack('H*').unpack('C*')
# => [97, 98, 99, 100, 101, 102]
"61 62 63 64 65 66".split.collect {|c| c.hex}
# => [97, 98, 99, 100, 101, 102...