Submit Search
Ruby 1.9.3 の新機能と変更点
19 likes
3,576 views
Kenta Murata
Ruby 1.9.3 の新機能と変更点について、2011年7月2日時点での NEWS をベースに解説しました。
Technology
Education
Read more
1 of 65
Download now
Downloaded 49 times
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
More Related Content
PDF
Ruby の懸案事項
Kenta Murata
PDF
The world without the literal notation for floating-point numbers
Kenta Murata
PDF
The world without float literal
Kenta Murata
PDF
Let's begin Behavior Driven Development using RSpec
Kenta Murata
PDF
関数型プログラミングの世界
Kenta Murata
PDF
Ruby 拡張モジュール入門
Kenta Murata
PDF
Introduction to ATDD with Cucumber and RSpec
Kenta Murata
PDF
Float is Legacy
Kenta Murata
Ruby の懸案事項
Kenta Murata
The world without the literal notation for floating-point numbers
Kenta Murata
The world without float literal
Kenta Murata
Let's begin Behavior Driven Development using RSpec
Kenta Murata
関数型プログラミングの世界
Kenta Murata
Ruby 拡張モジュール入門
Kenta Murata
Introduction to ATDD with Cucumber and RSpec
Kenta Murata
Float is Legacy
Kenta Murata
More from Kenta Murata
(11)
PDF
Rubyをたのしくするために私が考えていること
Kenta Murata
PDF
5分弱で分かる量子ビット
Kenta Murata
PDF
Rubykaigi2010mrkn bigdecimal
Kenta Murata
PDF
Ruby における絵文字エンコーディング間の相互変換ダイアグラム (案)
Kenta Murata
PDF
校内勉強会のススメ An encouragement to hold workshops In your school
Kenta Murata
PDF
Ruby の標準乱数生成器とその改善案
Kenta Murata
PDF
5分で分かる Measure
Kenta Murata
PDF
Measure 単位付き数値ライブラリ
Kenta Murata
PDF
情報学特論#02
Kenta Murata
PDF
情報学特論#01
Kenta Murata
PDF
北海道関数型言語勉強会@札幌#2のお知らせ
Kenta Murata
Rubyをたのしくするために私が考えていること
Kenta Murata
5分弱で分かる量子ビット
Kenta Murata
Rubykaigi2010mrkn bigdecimal
Kenta Murata
Ruby における絵文字エンコーディング間の相互変換ダイアグラム (案)
Kenta Murata
校内勉強会のススメ An encouragement to hold workshops In your school
Kenta Murata
Ruby の標準乱数生成器とその改善案
Kenta Murata
5分で分かる Measure
Kenta Murata
Measure 単位付き数値ライブラリ
Kenta Murata
情報学特論#02
Kenta Murata
情報学特論#01
Kenta Murata
北海道関数型言語勉強会@札幌#2のお知らせ
Kenta Murata
Ad
Ruby 1.9.3 の新機能と変更点
1.
Ruby 1.9.3
Kenta Murata 2011 7 3 1
2.
2011
7 3 2
3.
2011 2010
7 3 3 1 3
4.
Ruby 1.9.3
Kenta Murata 2011 7 3 4
5.
• ruby
NEWS ( ) 2011 7 3 5
6.
•
NEWS • ruby_1_9_3 NEWS 2011 7 3 6
7.
!
W NE ARGF.read_nonblock • ARGF.read_nonblock(maxlen) • ARGF.read_nonblock(maxlen, outbuf) 2011 7 3 7
8.
!
W NE ARGF.to_write_io • IO • IOError 2011 7 3 8
9.
!
W NE ARGF.write • ARGF.write(str) • str ARGF.to_write_io.write(str) 2011 7 3 9
10.
!
W NE ARGF • ARGF.print • ARGF.printf • ARGF.putc • ARGF.puts • IO ARGF.write 2011 7 3 10
11.
!
Array#pack, W NE String#unpack • ‘<’ ‘>’ S>, L>, Q>, s>, l>, q>, ‘>’ S!>, L!>, Q!>, s!>, l!>, q!> S<, L<, Q<, s<, l<, q<, ‘<’ S!<, L!<, Q!<, s!<, l!<, q!< 2011 7 3 11
12.
!
ed ov pr Bignum Im • 1,500 ( 150 ) (Toom-3) 2011 7 3 12
13.
!
W NE • CP950 (Big5) • CP951 (BIg5HKSCS) • UTF-16 • UTF-32 2011 7 3 13
14.
!
ed ng a Ch • SJIS Windows-31J • 1.9.2 Shift_JIS 2011 7 3 14
15.
!
W NE File::NULL • NULL • UNIX “/dev/null” • Windows “NUL” 2011 7 3 15
16.
!
ed ov pr IO#putc Im • • putc “ ” ! 2011 7 3 16
17.
!
W NE IO#advise • IO#advise(advise, offset=0, len=0) • posix_fadvise(2) OS • posix_fadvise(2) 2011 7 3 17
18.
!
W NE IO.write • IO.write(name, string, offset=0, opts={}) • name string offset opts • IO.read 2011 7 3 18
19.
!
W NE IO.binwrite • IO.binwrite(name, string, offset=0, opts={}) • IO.write • “wb:ASCII-8BIT” 2011 7 3 19
20.
!
ed ng BasicObject#__id__ a Ch • Object BasicObject • [ruby-dev:42778] 2011 7 3 20
21.
!
ed Kernel#rand, ov pr Im Random.rand • Kernel#rand(range) • Random.rand(range) • OK • [ruby-dev:43427], #4605 2011 7 3 21
22.
!
W Module#private_constant, NE Module#public_constant • • 2011 7 3 22
23.
!
W NE String#prepend • String#prepend(str) • str • recv[0,0] = str ( ) 2011 7 3 23
24.
!
W NE String#byteslice • String#byteslice(n) • String#byteslice(beg, end) • String#slice • 2011 7 3 24
25.
!
ed ov pr Time#strftime Im • • %:z %H:%M • %::z %H:%M:%S 2011 7 3 25
26.
!
Process#maxgroups, W NE Process#maxgroups • 2011 7 3 26
27.
!
ed ov BigDecimal.new, pr Im Kernel#BigDecimal • Integer Rational Float • Rational Float 2 2011 7 3 27
28.
!
ed ov pr BigDecimal#coerce Im • Rational BigDecimal coerce BigDecimal • 1.9.2 Rational Float 2011 7 3 28
29.
!
ed BigMath.exp, ng a Ch BigMath.log • bigdecimal/math bigdecimal •C 2011 7 3 29
30.
!
ed ov pr BigDecimal#** Im • BigDecimal ( ) 2011 7 3 30
31.
!
ed ov pr DateTime Im • DateTime.new Float Rational • 2011 7 3 31
32.
!
ed ov DateTime#+, pr Im DateTime#- • DateTime Float • Float 2011 7 3 32
33.
date
• • strftime (Time#strftime ) • inspect • marshal 2011 7 3 33
34.
!
W NE io/console • IO#noecho {|io} ... } • IO#echo= • IO#echo? • IO#raw {|io| ... } • IO#raw! • IO#getch • IO#winsize • IO.console 2011 7 3 34
35.
!
W NE Matrix • Matrix#diagnoal? -- • Matrix#hermitian? -- • Matrix#normal? -- • Matrix#orthogonal? -- • Matrix#permutation? -- • Matrix#symmetric? -- • Matrix#unitary? -- • Matrix#zero? -- 2011 7 3 35
36.
!
Matrix#eigen, W NE Matrix#eigensystem • • v, d, v_inv = matrix.eigen • v, v_inv : • d: • (v * d * v_inv).round(5) == matrix 2011 7 3 36
37.
!
W Matrix#lup NE Matrix#lup_decomposition • LUP • l, u, p = matrix.lup 2011 7 3 37
38.
!
W NE Matrix#round • Matrix#round(n=0) • n 2011 7 3 38
39.
!
W NE Vector#magnitude • 2011 7 3 39
40.
Matrix#each,
Matrix#each_with_index • Matrix#each(mode=:all) • each :all :diagonal :off_diagonal :lower :strict_lower :strict_upper :upper 2011 7 3 40
41.
:all
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2011 7 3 41
42.
:diagonal
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2011 7 3 42
43.
:off_diagonal
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2011 7 3 43
44.
:lower
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2011 7 3 44
45.
:strict_lower
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2011 7 3 45
46.
:strict_upper
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2011 7 3 46
47.
:upper
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2011 7 3 47
48.
!
ed Matrix#find_index, ov pr Im Matrix#index • Matrix#index(val, selector=:all) • val [row, column] • Matrix#index(selector=:all) {|val| ... } • • Matrix#index(selector=:all) • Enumerator 2011 7 3 48
49.
!
ed ov pr Matrix.zero Im • Matrix.zero(row_size, col_size=row_size) • 2011 7 3 49
50.
!
ed ov pr net/http Im • Server Name Indication ( ) • 100 continue ( ) • Net::HTTPRequest#set_form application/x-www-form-urlencoded multipart/form-data 2011 7 3 50
51.
!
ed ov pr webrick Im • WEBrick::HTTPRequest#continue 100 continue • “%{remote}p” 2011 7 3 51
52.
!
ed ov pr openssl Im • 2011 7 3 52
53.
!
ed ov pr optparse Im • bash zsh l 2011 7 3 53
54.
!
ed ov pr Rake Im • 0.9.2.1 • 1.9.2 0.8.7 2011 7 3 54
55.
!
ed ov pr RDoc Im • 3.8 • 1.9.2 2.5.8 2011 7 3 55
56.
!
ed ov pr rexml Im • iconv Ruby • Document#encoding XMLDecl#encoding Output#encoding Source#encoding Encoding 2011 7 3 56
57.
!
ed ov pr Rubygems Im • 1.5.0 2011 7 3 57
58.
!
ed ov pr stringio Im • StringIO#set_encoding (IO#set_encoding ) • 2011 7 3 58
59.
!
ed ov pr test/unit Im • • 2011 7 3 59
60.
!
ed ov pr uri Im • URI::Generic#hostname URI::Generic#hostname= 2011 7 3 60
61.
!
ed ng yaml a Ch • YAML Psych • syck : YAML::ENGINE.yamler = ‘syck’ 2011 7 3 61
62.
!
ed ov pr zlib Im • Zlib::Deflate.deflate Zlib.deflate • Zlib::Inflate.inflate Zlib.inflate 2011 7 3 62
63.
!
ed ov pr fileutils Im • FileUtils.chmod chmod(1) • : FileUtils.chmod “u=wrx,go=rx”, filename 2011 7 3 63
64.
!
ed ov pr Im • Regexp Unicode 6.0 • Regexp Unicode Age • warn-indent: true ) -*- warn-indent: true -*- ) -*- warn-indent: false -*- 2011 7 3 64
65.
•
NEWS • Ruby 1.9.3 2011 7 3 65
Download