るりまサーチ

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

別のキーワード

  1. _builtin >
  2. bigdecimal >
  3. float >
  4. integer >
  5. module >

ライブラリ

クラス

モジュール

キーワード

検索結果

IPAddr#native -> self | IPAddr (18213.0)

IPv4 射影 IPv6 アドレスや IPv4 互換 IPv6 アドレスから、 IPv4 アドレスの新しい IPAddr オブジェクトを返します。 IPv4 互換でも IPv4 組み込みでもないなら self を返します。

...IPv4 アドレスの新しい IPAddr オブジェクトを返します。
IPv4 互換でも IPv4 組み込みでもないなら self を返します。

例:

require "ipaddr"
p IPAddr.new("0000:0000:0000:0000:0000:ffff:c0a8:0001").native
# => #<IPAddr: IPv4:192.168.0.1/255.255.255.255>...

Socket::AF_NATM -> Integer (116.0)

@todo Native ATM access。 Socket.open の第一引数 domain に使用します。

...@todo
Native
ATM access。
Socket.open の第一引数 domain に使用します。...

Socket::Constants::AF_NATM -> Integer (116.0)

@todo Native ATM access。 Socket.open の第一引数 domain に使用します。

...@todo
Native
ATM access。
Socket.open の第一引数 domain に使用します。...

Socket::Constants::PF_NATM -> Integer (116.0)

@todo Native ATM access。 Socket.open の第一引数 domain に使用します。

...@todo
Native
ATM access。
Socket.open の第一引数 domain に使用します。...

Socket::PF_NATM -> Integer (116.0)

@todo Native ATM access。 Socket.open の第一引数 domain に使用します。

...@todo
Native
ATM access。
Socket.open の第一引数 domain に使用します。...

絞り込み条件を変える

CSV (12.0)

このクラスは CSV ファイルやデータに対する完全なインターフェイスを提供します。

...each("sample.csv") do |row|
p row
end
# => ["Ruby", "1995"]
# ["Rust", "2010"]

# ファイルから一度に
p CSV.read("sample.csv")
# => [["Ruby", "1995"], ["Rust", "2010"]]

# 文字列から一行ずつ
CSV.parse(csv_text) do |row|
p row
end
# => ["Ruby", "1995"]
# ["Rust", "2010"]

#...
...文字列から一度に
p CSV.parse(csv_text)
# => [["Ruby", "1995"], ["Rust", "2010"]]
//}

=== 書き込み

//emlist[][ruby]{
require 'csv'

# ファイルへ書き込み
CSV.open("path/to/file.csv", "wb") do |csv|
csv << ["row", "of", "CSV", "data"]
csv << ["another", "row"]
# ...
end

#...
...ersions.
Again, you can provide custom converters that are aware of your Encodings to
avoid this translation. It's just too hard for me to support native
conversions in all of Ruby's Encodings.

Anyway, the practical side of this is simple: make sure IO and String objects
passed into CSV have the...

NEWS for Ruby 3.0.0 (12.0)

NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...o keywords.
16166

//emlist[][ruby]{
pr = proc{|*a, **kw| [a, kw]}

pr.call([1])
# 2.7 => [[1], {}]
# 3.0 => [[[1]], {}]

pr.call([1, {a: 1}])
# 2.7 => [[1], {:a=>1}] # and deprecation warning
# 3.0 => a=>1}, {}]
//}

* Arguments forwarding (`...`) now supports leading arguments.
16378

//...
...ENTAL]
* `=>` is added. It can be used like a rightward assignment.
17260
* `in` is changed to return `true` or `false`. 17371

//emlist{
0 => a
p a #=> 0

{b: 0, c: 1} => {b:}
p b #=> 0
//}

//emlist{
# version 3.0
0 in 1 #=> false

# version 2.7
0 in 1 #=> raise NoMatchingP...
...not refinements or an attr reader or writer.

=== JIT

* Performance improvements of JIT-ed code
* Microarchitectural optimizations
* Native functions shared by multiple methods are deduplicated on JIT compaction.
* Decrease code size of hot paths by some optimizations and part...