1085件ヒット
[1-100件を表示]
(0.134秒)
クラス
- Array (33)
- CSV (187)
-
Encoding
:: Converter (44) -
Enumerator
:: Lazy (44) - Exception (7)
- Object (11)
- Range (66)
- Regexp (44)
-
RubyVM
:: AbstractSyntaxTree :: Node (12) - String (198)
- Thread (16)
モジュール
- Enumerable (66)
- Kernel (198)
-
OpenURI
:: Meta (11) - Process (7)
- Rake (22)
-
Rake
:: TaskManager (33)
キーワード
-
$ & (11) -
$ & # 39; (11) -
$ 1 (11) -
$ 10 (11) -
$ 11 (11) -
$ 2 (11) -
$ 3 (11) -
$ 4 (11) -
$ 5 (11) -
$ 6 (11) -
$ 7 (11) -
$ 8 (11) -
$ 9 (11) -
$ LAST _ MATCH _ INFO (11) -
$ LAST _ PAREN _ MATCH (11) -
$ LAST _ READ _ LINE (11) -
$ ` (11) -
$ ~ (11) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - =~ (11)
-
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) -
SCRIPT
_ LINES _ _ (11) - [] (66)
- application (11)
- application= (11)
- begin (11)
-
chunk
_ while (11) -
col
_ sep (11) - compile (11)
- each (11)
- filter (33)
- first (44)
- generate (11)
- instance (22)
-
last
_ column (6) -
last
_ comment (11) -
last
_ description (11) -
last
_ description= (11) -
last
_ error (11) -
last
_ lineno (6) -
last
_ match (11) -
last
_ modified (11) -
last
_ status (7) - max (22)
- new (66)
- open (44)
- open-uri (11)
- parse (22)
-
rb
_ frame _ last _ func (11) - read (11)
- readlines (11)
-
report
_ on _ exception (8) -
report
_ on _ exception= (8) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) - slice (66)
- slice! (66)
-
slice
_ after (22) -
slice
_ before (22) -
slice
_ when (11) -
take
_ while (22) - zip (22)
- パターンマッチ (11)
検索結果
先頭5件
-
Array
# last -> object | nil (18226.0) -
配列の末尾の要素を返します。配列が空のときは nil を返します。
...配列の末尾の要素を返します。配列が空のときは nil を返します。
//emlist[例][ruby]{
p [0, 1, 2].last #=> 2
p [].last #=> nil
//}
@see Array#first... -
RubyVM
:: AbstractSyntaxTree :: Node # last _ lineno -> Integer (15313.0) -
ソースコード中で、self を表すテキストが最後に現れる行番号を返します。
...ソースコード中で、self を表すテキストが最後に現れる行番号を返します。
行番号は1-originです。
//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 1')
p node.last_lineno # => 1
//}... -
Kernel
$ $ LAST _ READ _ LINE -> String | nil (12325.0) -
$_ の別名
...$_ の別名
1 e
2 f
3 g
4 h
5 i
# end of a.txt
ruby -rEnglish -ne'p $LAST_READ_LINE' a.txt
#=>
"1 e\n"
"2 f\n"
"3 g\n"
"4 h\n"
"5 i\n"... -
Rake
:: TaskManager # last _ description=(description) (12325.0) -
最新の詳細説明をセットします。
...トします。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app1
desc "test1"
task :test_rake_app1 do |task|
task.application.last_description # => "test2"
task.application.last_description = "test3"
task.application.last_description # => "test3"
end
desc... -
Kernel
$ $ LAST _ MATCH _ INFO -> MatchData | nil (12237.0) -
$~ の別名
...ire "English"
str = "<a href=https://www.ruby-lang.org/en/about/license.txt>license</a>"
if /<a href=(.+?)>/ =~ str
p $LAST_MATCH_INFO[0] #=> "<a href=https://www.ruby-lang.org/en/about/license.txt>"
p $LAST_MATCH_INFO[1] #=> "https://www.ruby-lang.org/en/about/license.txt"
p $LAST......_MATCH_INFO[2] #=> nil
end... -
OpenURI
:: Meta # last _ modified -> Time | nil (12229.0) -
対象となる URI の最終更新時刻を Time オブジェクトで返します。 Last-Modified ヘッダがない場合は nil を返します。
...対象となる URI の最終更新時刻を Time オブジェクトで返します。
Last-Modified ヘッダがない場合は nil を返します。
例:
//emlist[例][ruby]{
require 'open-uri'
open('http://www.rubyist.net/') {|f|
p f.last_modified
#=> Thu Feb 26 16:54:58 +0900 2004
}
//}......対象となる URI の最終更新時刻を Time オブジェクトで返します。
Last-Modified ヘッダがない場合は nil を返します。
例:
//emlist[例][ruby]{
require 'open-uri'
URI.open('http://www.rubyist.net/') {|f|
p f.last_modified
#=> Thu Feb 26 16:54:58 +0900 2004
}
/... -
Encoding
:: Converter # last _ error -> Exception | nil (9219.0) -
直前に変換器で発生した例外に相当する例外オブジェクトを返します。 直前の変換で例外が発生していない場合は nil を返します。
...合は nil を返します。
//emlist[][ruby]{
ec = Encoding::Converter.new("utf-8", "iso-8859-1")
p ec.primitive_convert(src="\xf1abcd", dst="") #=> :invalid_byte_sequence
p ec.last_error #=> #<Encoding::InvalidByteSequenceError: "\xF1" followed by "a" on UTF-8>
p ec.primitive_convert(......src, dst, nil, 1) #=> :destination_buffer_full
p ec.last_error #=> nil
//}... -
Rake
:: TaskManager # last _ description -> String (9214.0) -
Rakefile 内の最新の詳細説明を追跡するためのメソッドです。
...Rakefile 内の最新の詳細説明を追跡するためのメソッドです。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app1
desc "test1"
task :test_rake_app1 do |task|
p task.application.last_description # => "test2"
end
desc "test2"
task :test_rake_a... -
RubyVM
:: AbstractSyntaxTree :: Node # last _ column -> Integer (9213.0) -
ソースコード中で、self を表すテキストが最後に現れる列番号を返します。
...ソースコード中で、self を表すテキストが最後に現れる列番号を返します。
列番号は0-originで、バイト単位で表されます。
//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 1')
p node.last_column # => 5
//}... -
ID rb
_ frame _ last _ func(void) (6316.0) -
現在呼び出し中の (Rubyで実装された) メソッドの呼び出し名を返します。
...現在呼び出し中の (Rubyで実装された) メソッドの呼び出し名を返します。...