るりまサーチ

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

別のキーワード

  1. _builtin |
  2. set |
  3. ipaddr |
  4. nilclass |
  5. array |

ライブラリ

クラス

キーワード

検索結果

IPAddr#native -> self | IPAddr (18308.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>...

NEWS for Ruby 3.0.0 (306.0)

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

...osplatting. This now matches the behavior of Procs
accepting a single rest argument and no 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 =>...
...mlist{
def method_missing(meth, ...)
send(:"do_#{meth}", ...)
end
//}

* Pattern matching (`case/in`) is no longer experimental. 17260
* One-line pattern matching is redesigned. [EXPERIMENTAL]
* `=>` is added. It can be used like a rightward assignment.
17260
* `in...
...n 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 compaction.
* Decrease code size of hot paths by...

NEWS for Ruby 3.1.0 (264.0)

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

...private def foo = puts "Hello" はパースされないことに注意してください。 17398

== コマンドラインオプション

* --disable-gems は"デバッグ専用"として明示的に宣言されました。デバッグ専用以外のコードでは使用しないでください...
...rror 例外が発生します。 18254

* Thread
* 新規メソッド
* Thread#native_thread_id が追加されました。 17853

* Thread::Backtrace
* 新規メソッド
* --backtrace-limit コマンドラインオプションで設定したバックトレースの長さを...
...t: T

def initialize: (T output) -> void
end
//}

* ジェネリックな型エイリアスが定義できるようになりました。 https://github.com/ruby/rbs/pull/823

//emlist{
# Defines a generic type `list`.
type list[T] = [ T, list[T] ]
|
nil

type str_list = list[String]...

CSV (102.0)

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

...行ずつ
CSV.foreach("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"]
# ["...
...atures 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 Encoding...