4619件ヒット
[1-100件を表示]
(0.161秒)
別のキーワード
種類
ライブラリ
- English (24)
- ビルトイン (2608)
- abbrev (24)
- benchmark (24)
- bigdecimal (12)
-
cgi
/ core (12) - csv (216)
- digest (48)
- erb (24)
-
irb
/ cmd / help (12) - json (168)
-
json
/ add / date _ time (12) - logger (12)
- mkmf (36)
-
net
/ http (276) - objspace (12)
- open-uri (24)
- openssl (48)
- optparse (180)
- pathname (48)
- psych (91)
- rake (24)
-
rake
/ packagetask (12) - readline (12)
-
rexml
/ document (36) -
rubygems
/ gem _ path _ searcher (12) - securerandom (8)
- socket (24)
- stringio (141)
- strscan (144)
- uri (36)
-
webrick
/ httprequest (12) -
webrick
/ httpservlet / cgihandler (12) - win32ole (24)
クラス
-
ARGF
. class (63) - Array (33)
-
Benchmark
:: Tms (12) - BigDecimal (12)
- CGI (12)
- CSV (168)
-
CSV
:: FieldInfo (12) -
CSV
:: Table (36) - DateTime (12)
-
Digest
:: Base (36) - Dir (95)
- Encoding (12)
-
Encoding
:: Converter (36) -
Encoding
:: UndefinedConversionError (12) - Enumerator (24)
- Exception (8)
- File (96)
-
Gem
:: GemPathSearcher (12) - Hash (24)
- IO (117)
- IPSocket (12)
-
IRB
:: ExtendCommand :: Help (12) - Integer (24)
- Logger (12)
- MatchData (158)
- Method (36)
- Module (216)
-
Net
:: HTTPGenericRequest (36) -
Net
:: HTTPResponse (96) - NilClass (7)
- Object (133)
-
OpenSSL
:: ASN1 :: GraphicString (24) - OptionParser (180)
- Pathname (48)
-
Psych
:: ScalarScanner (12) -
Psych
:: Visitors :: YAMLTree (12) -
REXML
:: Element (24) -
REXML
:: Entity (12) -
Rake
:: FileList (12) -
Rake
:: InvocationChain (12) -
Rake
:: PackageTask (12) - Range (14)
- Refinement (4)
- Regexp (24)
-
RubyVM
:: InstructionSequence (36) - Socket (12)
- String (939)
- StringIO (129)
- StringScanner (144)
- Symbol (54)
- Thread (42)
-
Thread
:: Backtrace :: Location (72) - Time (30)
- TracePoint (12)
-
URI
:: MailTo (12) - UnboundMethod (96)
- UncaughtThrowError (11)
-
WEBrick
:: HTTPRequest (12) -
WEBrick
:: HTTPServlet :: CGIHandler (12) -
WIN32OLE
_ TYPE (12) -
WIN32OLE
_ TYPELIB (12)
モジュール
- Abbrev (12)
- Benchmark (12)
- Digest (12)
-
ERB
:: Util (24) - JSON (48)
-
JSON
:: Generator :: GeneratorMethods :: Array (12) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) -
JSON
:: Generator :: GeneratorMethods :: Float (12) -
JSON
:: Generator :: GeneratorMethods :: Hash (12) -
JSON
:: Generator :: GeneratorMethods :: Integer (12) -
JSON
:: Generator :: GeneratorMethods :: NilClass (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (12) -
JSON
:: Generator :: GeneratorMethods :: String :: Extend (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - Kernel (192)
- Marshal (48)
-
Net
:: HTTPHeader (144) - ObjectSpace (12)
-
OpenSSL
:: ASN1 (24) -
OpenURI
:: Meta (24) - Psych (67)
- Readline (12)
- SecureRandom (8)
- URI (24)
キーワード
-
$ LAST _ PAREN _ MATCH (12) -
$ LAST _ READ _ LINE (12) -
$ LOAD _ PATH (12) -
$ archdir (12) -
$ hdrdir (12) -
$ sitearchdir (12) - % (19)
- + (12)
- << (12)
- <=> (24)
- == (24)
- === (24)
- =~ (28)
- FORMAT (24)
- GraphicString (24)
- Marshal フォーマット (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
RUBY
_ COPYRIGHT (12) - Rubyの起動 (7)
- STR2CSTR (12)
- String (12)
- StringIO (12)
- StringValuePtr (12)
- [] (120)
- []= (36)
- abbrev (24)
-
absolute
_ path (36) -
alias
_ method (12) - alphanumeric (8)
- arity (12)
- backtrace (12)
-
base
_ label (12) -
basic
_ auth (12) - binread (24)
- binwrite (12)
- body (24)
- bytes (7)
- byteslice (24)
- caller (12)
- captures (12)
- casecmp (24)
- casecmp? (18)
- center (12)
- charpos (12)
- chars (24)
- charset (24)
- check (12)
-
check
_ until (12) - children (23)
- chomp (24)
- chomp! (12)
- chop (24)
- chop! (12)
- chr (36)
- clone (12)
- code (12)
- coerce (12)
-
compile
_ option (12) - concat (12)
-
const
_ defined? (12) -
const
_ get (12) -
const
_ source _ location (12) -
content
_ type (12) - count (12)
-
count
_ objects _ size (12) -
datetime
_ format (12) - deconstruct (2)
-
define
_ method (24) -
define
_ singleton _ method (24) - delete (12)
- dump (48)
-
dump
_ stream (12) - each (24)
-
each
_ byte (48) -
each
_ char (24) -
each
_ codepoint (24) -
each
_ grapheme _ cluster (16) -
each
_ line (48) -
end
_ with? (18) - entity (12)
- entries (24)
- eql? (24)
-
error
_ char (12) - execute (12)
- extract (24)
- fetch (36)
- filter (36)
- finish (12)
- format (12)
- generate (24)
-
generate
_ line (12) -
get
_ fields (12) - getaddress (12)
- getc (12)
- getch (12)
- gethostname (12)
- gets (27)
-
grapheme
_ clusters (16) - gsub (36)
- gsub! (24)
- hash (24)
- header (24)
- headers (12)
- help (12)
- helpfile (12)
- hex (12)
- hexdigest (12)
- hexdigest! (12)
- hexencode (12)
- home (24)
-
html
_ escape (12) -
http
_ version (12) -
import
_ methods (4) - include? (12)
- insert (12)
-
insert
_ output (12) - inspect (78)
- instance (24)
-
instance
_ method (12) -
json
_ create (12) - label (12)
-
last
_ match (24) - length (12)
-
lib
_ dirs _ for (12) - lines (32)
- ljust (12)
- load (12)
-
locale
_ charmap (12) - logger (12)
-
main
_ type (12) - match (24)
- match? (30)
- matched (12)
- matched? (12)
-
matched
_ size (12) - matches? (12)
- method (36)
-
method
_ defined? (12) - msg (12)
- name (12)
- name= (10)
- names (12)
- new (60)
- on (96)
- open (48)
- pack (21)
- pack テンプレート文字列 (12)
-
package
_ dir _ path (12) - parse (24)
- parse! (12)
- path (111)
- pathmap (12)
-
post
_ match (24) -
pre
_ match (24) - prepend (12)
-
pretty
_ generate (12) -
pretty
_ unparse (12) -
private
_ class _ method (24) -
private
_ method _ defined? (12) -
protected
_ method _ defined? (12) -
proxy
_ basic _ auth (12) -
public
_ class _ method (24) -
public
_ instance _ method (12) -
public
_ method (12) -
public
_ method _ defined? (12) - query (12)
-
quote
_ char (12) -
rb
_ compile _ string (12) -
rb
_ eval _ string (12) -
rb
_ eval _ string _ protect (12) - read (12)
-
read
_ body (24) - readchar (24)
- readline (12)
- readlines (63)
- readlink (12)
- realpath (12)
-
remove
_ method (12) - replace (12)
- restore (12)
- rjust (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 4 feature (12) -
rubygems
/ commands / cert _ command (12) -
rubygems
/ commands / list _ command (12) -
safe
_ load (19) - scrub (36)
- scrub! (36)
-
search
_ full (12) - shift (12)
-
singleton
_ method (12) - size (12)
- slice (36)
- slice! (24)
-
source
_ location (24) - split (31)
- sprintf (12)
- sprintf フォーマット (12)
- squeeze (12)
- squeeze! (12)
-
start
_ with? (18) - step (7)
- strftime (12)
- sub (60)
- sub! (24)
-
sub
_ type (12) -
summary
_ indent (12) - text (12)
- then (14)
-
to
_ a (24) -
to
_ csv (12) -
to
_ json (132) -
to
_ path (27) -
to
_ s (151) - tokenize (12)
-
trace
_ var (24) -
undef
_ method (12) - ungetc (12)
- unpack (12)
- unparse (12)
-
untrace
_ var (12) -
values
_ at (12) -
with
_ object (24) - write (24)
- xpath (12)
-
yield
_ self (14) - パターンマッチ (12)
- 正規表現 (12)
検索結果
先頭5件
-
MatchData
# string -> String (27414.0) -
マッチ対象になった文字列の複製を返します。
...マッチ対象になった文字列の複製を返します。
返す文字列はフリーズ(Object#freeze)されています。
//emlist[例][ruby]{
m = /(.)(.)(\d+)(\d)/.match("THX1138.")
m.string # => "THX1138."
//}... -
WEBrick
:: HTTPServlet :: CGIHandler :: Ruby -> String (24318.0) -
Ruby のパスを返します。
...
Ruby のパスを返します。... -
String
# grapheme _ clusters {|grapheme _ cluster| block } -> self (21431.0) -
文字列の書記素クラスタの配列を返します。(self.each_grapheme_cluster.to_a と同じです)
...。(self.each_grapheme_cluster.to_a と同じです)
//emlist[例][ruby]{
"a\u0300".grapheme_clusters # => ["à"]
//}
ブロックが指定された場合は String#each_grapheme_cluster と同じように動作します。
Ruby 2.6 までは deprecated の警告が出ますが、Ruby 2.7 で警......告は削除されました。
@see String#each_grapheme_cluster... -
String
# grapheme _ clusters -> [String] (21331.0) -
文字列の書記素クラスタの配列を返します。(self.each_grapheme_cluster.to_a と同じです)
...。(self.each_grapheme_cluster.to_a と同じです)
//emlist[例][ruby]{
"a\u0300".grapheme_clusters # => ["à"]
//}
ブロックが指定された場合は String#each_grapheme_cluster と同じように動作します。
Ruby 2.6 までは deprecated の警告が出ますが、Ruby 2.7 で警......告は削除されました。
@see String#each_grapheme_cluster... -
String
# match(regexp , pos = 0) -> MatchData | nil (21330.0) -
regexp.match(self, pos) と同じです。 regexp が文字列の場合は、正規表現にコンパイルします。 詳しくは Regexp#match を参照してください。
...egexp.match(self, pos) と同じです。
regexp が文字列の場合は、正規表現にコンパイルします。
詳しくは Regexp#match を参照してください。
//emlist[例: regexp のみの場合][ruby]{
'hello'.match('(.)\1') # => #<MatchData "ll" 1:"l">
'hello'.match('(.)\1'......=> "ll"
'hello'.match(/(.)\1/)[0] # => "ll"
'hello'.match('xx') # => nil
//}
//emlist[例: regexp, pos を指定した場合][ruby]{
'hoge hige hege bar'.match('h.ge', 0) # => #<MatchData "hoge">
'hoge hige hege bar'.match('h.ge', 1) # => #<MatchData "hige">
//}
//emlist[例: ブ......ロックを指定した場合][ruby]{
'hello'.match('(.)\1'){|e|"match #{$1}"} # => "match l"
'hello'.match('xx'){|e|"match #{$1}"} # マッチしないためブロックは実行されない
//}
@see Regexp#match, Symbol#match... -
String
# each _ grapheme _ cluster {|grapheme _ cluster| block } -> self (21318.0) -
文字列の書記素クラスタに対して繰り返します。
...。
String#each_char と違って、
Unicode Standard Annex #29 (https://unicode.org/reports/tr29/)
で定義された書記素クラスタに対して繰り返します。
//emlist[例][ruby]{
"a\u0300".each_char.to_a.size # => 2
"a\u0300".each_grapheme_cluster.to_a.size # => 1
//}
@see String#g......rapheme_clusters... -
String
# each _ byte {|byte| . . . } -> self (21312.0) -
文字列の各バイトに対して繰り返します。
...文字列の各バイトに対して繰り返します。
//emlist[例][ruby]{
"str".each_byte do |byte|
p byte
end
# => 115
# => 116
# => 114
"あ".each_byte do |byte|
p byte
end
# => 227
# => 129
# => 130
//}
@see String#bytes... -
ERB
:: Util . # h(s) -> String (21309.0) -
文字列 s を HTML用にエスケープした文字列を返します。
... HTML用にエスケープした文字列を返します。
文字列 s 中に含まれる &"<> を、実体参照 & " < > にそれぞれ変更した文字列を返します
(CGI.escapeHTMLとほぼ同じです)。
@param s HTMLエスケープを行う文字列
//emlist[例][ruby......]{
require "erb"
include ERB::Util
puts html_escape("is a > 0 & a < 10?")
# is a > 0 & a < 10?
//}... -
String
# start _ with?(*prefixes) -> bool (21254.0) -
self の先頭が prefixes のいずれかであるとき true を返します。
...き true を返します。
@param prefixes パターンを表す文字列または正規表現 (のリスト)
//emlist[例][ruby]{
"string".start_with?("str") # => true
"string".start_with?("ing") # => false
"string".start_with?("ing", "str") # => true
"string".start_with?(/\w....../) # => true
"string".start_with?(/\d/) # => false
//}
@see String#end_with?
@see String#delete_prefix, String#delete_prefix!... -
String
# end _ with?(*strs) -> bool (21242.0) -
self の末尾が strs のいずれかであるとき true を返します。
...strs のいずれかであるとき true を返します。
@param strs パターンを表す文字列 (のリスト)
//emlist[例][ruby]{
"string".end_with?("ing") # => true
"string".end_with?("str") # => false
"string".end_with?("str", "ing") # => true
//}
@see String#sta......rt_with?
@see String#delete_suffix, String#delete_suffix!...