るりまサーチ

最速Rubyリファレンスマニュアル検索!
1085件ヒット [1-100件を表示] (0.134秒)
トップページ > クエリ:i[x] > クエリ:RUBY[x] > クエリ:last[x]

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. ipaddr to_i
  5. csv to_i

ライブラリ

クラス

モジュール

検索結果

<< 1 2 3 ... > >>

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>"

i
f /<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で実装された) メソッドの呼び出し名を返します。...

絞り込み条件を変える

<< 1 2 3 ... > >>