るりまサーチ

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

別のキーワード

  1. socket ai_v4mapped
  2. socket ipv6_v6only
  3. socket ai_v4mapped_cfg
  4. _builtin grep_v
  5. etc cs_v6_env

ライブラリ

クラス

キーワード

検索結果

IPAddr#native -> self | IPAddr (24207.0)

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

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

例:

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

CSV (6006.0)

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

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

=== 読み込み

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

csv_text = <<~CSV_TEXT
Ruby,1995
Rust,2010
CSV_TEXT

IO.write "sample.csv", csv_text

# ファイルから一行ずつ
CSV.foreach("sample.csv") do...
...0"]

# ファイルから一度に
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",...
...are not. For example, the built-in
converters will try to transcode data to UTF-8 before making conversions.
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.

An...

Win32ネイティブ版 (6000.0)

Win32ネイティブ版 Win32 版 Ruby を Cygwin 版と比較すると以下の利点があります。

...いては platform/mswin32-compat も参照してください。

現在 Win32 ネイティブな Ruby で広く配布されているものには、
V
isual C++ で構築した platform/mswin32 版と
gcc でコンパイルした platform/MinGW 版の 2 種類があります。
また ruby 1.7 から...
...りません。
ただし Ruby 1.6 以前ではそれぞれで DLL 名が違うので、
拡張ライブラリは流用できません。
つまり VC++ でコンパイルした拡張ライブラリは
mswin32 版の ruby でしか使えないということです。
この点は Ruby 1.8 以降で...

NEWS for Ruby 3.0.0 (18.0)

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

...ation warnings in Ruby 2.7 will now
result in ArgumentError or different behavior. 14183
* Procs accepting a single rest argument and keywords are no longer
subject to autosplatting. This now matches the behavior of Procs
accepting a single rest argument and no keywords.
16166

//...
...* `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 NoMatchingPatternError
//}

* Find-pattern is added. [EXPERIMENTAL]
16828

//emlist{
case ["a", 1,...
...` is optimized when the same type of method is called in the previous call if it's 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 c...