549件ヒット
[201-300件を表示]
(0.123秒)
ライブラリ
- ビルトイン (261)
-
cgi
/ core (12) -
cgi
/ html (36) -
irb
/ context (48) -
irb
/ ext / save-history (12) -
rexml
/ document (72) -
rubygems
/ package / tar _ header (12) - scanf (36)
- socket (60)
クラス
-
ARGF
. class (24) - Binding (7)
-
Gem
:: Package :: TarHeader (12) - IO (12)
-
IRB
:: Context (60) - MatchData (4)
- Module (180)
- Object (12)
-
REXML
:: Attribute (12) -
REXML
:: Attributes (12) -
REXML
:: Element (24) -
REXML
:: Entity (12) - Refinement (4)
- Socket (24)
- String (36)
- Symbol (6)
- UDPSocket (36)
モジュール
-
CGI
:: HtmlExtension (36) -
CGI
:: QueryExtension (12) - Kernel (12)
-
REXML
:: Namespace (12)
キーワード
- === (24)
- a (24)
-
alias
_ method (12) - base (12)
- bind (12)
- captures (2)
- connect (12)
- deconstruct (2)
-
delete
_ prefix (8) -
delete
_ prefix! (8) -
deprecate
_ constant (12) -
history
_ file (12) -
import
_ methods (4) -
inplace
_ mode (12) - namespace (12)
- prefix (36)
- prefixes (24)
- private (48)
-
prompt
_ c (12) -
prompt
_ i (12) -
prompt
_ n (12) -
prompt
_ s (12) - protected (48)
- public (48)
- putc (12)
- referer (12)
- scanf (36)
- send (36)
-
source
_ location (7) -
start
_ with? (14)
検索結果
先頭5件
-
Module
# protected(name) -> String | Symbol (120.0) -
メソッドを protected に設定します。
...ます。
可視性については d:spec/def#limit を参照して下さい。
@param name 0 個以上の String または Symbol を指定します。
@param names 0 個以上の String または Symbol を Array で指定します。
@raise NameError 存在しないメソッド名を指定し... -
Module
# public(name) -> String | Symbol (120.0) -
メソッドを public に設定します。
...ます。
可視性については d:spec/def#limit を参照して下さい。
@param name 0 個以上の String または Symbol を指定します。
@param names 0 個以上の String または Symbol を Array で指定します。
@raise NameError 存在しないメソッド名を指定し... -
IRB
:: Context # history _ file -> String | nil (114.0) -
履歴ファイルのパスを返します。
...履歴ファイルのパスを返します。
@return 履歴ファイルのパスを String か nil で返します。nil を返し
た場合は、~/.irb_history に履歴が保存されます。
@see lib:irb#history... -
MatchData
# captures -> [String] (109.0) -
$1, $2, ... を格納した配列を返します。
$1, $2, ... を格納した配列を返します。
MatchData#to_a と異なり $& を要素に含みません。
グループにマッチした部分文字列がなければ対応する要素は nil になります。
//emlist[例][ruby]{
/(foo)(bar)(BAZ)?/ =~ "foobarbaz"
p $~.to_a # => ["foobar", "foo", "bar", nil]
p $~.captures # => ["foo", "bar", nil]
//}
@see MatchData#to_a, MatchData#named_captures, d... -
MatchData
# deconstruct -> [String] (109.0) -
$1, $2, ... を格納した配列を返します。
$1, $2, ... を格納した配列を返します。
MatchData#to_a と異なり $& を要素に含みません。
グループにマッチした部分文字列がなければ対応する要素は nil になります。
//emlist[例][ruby]{
/(foo)(bar)(BAZ)?/ =~ "foobarbaz"
p $~.to_a # => ["foobar", "foo", "bar", nil]
p $~.captures # => ["foo", "bar", nil]
//}
@see MatchData#to_a, MatchData#named_captures, d... -
Binding
# source _ location -> [String , Integer] (108.0) -
self の Ruby のソースファイル名と行番号を返します。
self の Ruby のソースファイル名と行番号を返します。
d:spec/variables#pseudo の __FILE__ と __LINE__ も参照してください。
//emlist[例][ruby]{
p binding.source_location # => ["test.rb", 1]
//} -
IRB
:: Context # prompt _ c -> String (108.0) -
式が継続している時のプロンプトを表現するフォーマット文字列を返します。
式が継続している時のプロンプトを表現するフォーマット文字列を返します。
@see IRB::Context#prompt_c=, lib:irb#customize_prompt -
IRB
:: Context # prompt _ i -> String (108.0) -
通常のプロンプトを表現するフォーマット文字列を返します。
通常のプロンプトを表現するフォーマット文字列を返します。
@see IRB::Context#prompt_i=,lib:irb#customize_prompt -
IRB
:: Context # prompt _ n -> String (108.0) -
継続行のプロンプトを表現するフォーマット文字列を返します。
継続行のプロンプトを表現するフォーマット文字列を返します。
@see IRB::Context#prompt_n=, lib:irb#customize_prompt -
IRB
:: Context # prompt _ s -> String (108.0) -
文字列中のプロンプトを表現するフォーマット文字列を返します。
文字列中のプロンプトを表現するフォーマット文字列を返します。
@see IRB::Context#prompt_s=, lib:irb#customize_prompt -
Symbol
# start _ with?(*prefixes) -> bool (107.0) -
self の先頭が prefixes のいずれかであるとき true を返します。
...self の先頭が prefixes のいずれかであるとき true を返します。
(self.to_s.start_with?と同じです。)
@param prefixes パターンを表す文字列または正規表現 (のリスト)
@see Symbol#end_with?
@see String#start_with?
//emlist[][ruby]{
:hello.start_with?("hel......l") #=> 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
//}... -
Object
# ===(other) -> bool (35.0) -
case 式で使用されるメソッドです。d:spec/control#case も参照してください。
...se arg
when /ruby(?!\s*on\s*rails)/i
"hit! #{arg}"
when String
"Instance of String class. But don't hit."
else
"unknown"
end
end
puts check([]) #=> unknown
puts check("mash-up in Ruby on Rails") #=> instance of String class. But not hit...
puts check("<Ruby's world>") #=> hit! <...