viii

Size: px
Start display at page:

Download "viii"

Transcription

1 vii

2 viii

3 ix

4 Ruby_Chap :24 PM ページx x はじめに 12 章 ユーザーインターフェイス では ユーザーインターフェイスを取り上げる Web インターフェイスは除く ここでは コマンドラインインターフェイス Curses や HighLine を使用したキャラクタベースの GUI さまざまなプラットフォーム用の GUI ツー ルキット およびあまり知られていないユーザーインターフェイス レシピ を取り上 げる 本書のコードについて クックブックから学ぶということは レシピを実行することを意味する レシピによっては非常 に大きな Ruby コードブロックを定義しており 実際には理解していなくても 自分のプログラム にコピーして使用することができる レシピ 10.8 はよい例である しかし ほとんどのレシピの 目的はテクニックを具体的に示すことにあり テクニックを学ぶには実践するのが一番である 本書のレシピとコードは このことを念頭に置いて構成されている コードのほとんどは その レシピで説明した概念の単体テストと位置づけられる それらはオブジェクトをつついて結果を見 せるのである Ruby システムには irb と呼ばれる対話型インタープリタが搭載されている irb セッション では Ruby コード行を入力して 出力をすぐに確認することができる このため Ruby プログ ラムファイルを作成し それをインタープリタで実行する必要はない 本書のレシピのほとんどは irb セッションに直接入力するか コピーアンドペーストできる形 式になっている レシピへの理解を深めるために irb セッションを開始して 本書を読みながら コードを実行してみることをお勧めする ただ読むだけの場合と比べて 実際に実行してみるほう が概念をよく理解できる それが済んだら コードを実行するときに自分で定義したオブジェクト を使用して さらに実験してみることができる 本書では Ruby の式の結果として期待される値に 読者の注意を促したいことがある その場 合には ASCII 矢印が含まれた Ruby コメントを使用して 式の期待値を示している この矢印 は irb セッションに入力した式の値を示すために使用されるものと同じである また コードの一部を説明するためにコメント文を使用することもある 次に示すコードの一部 は 実際のレシピと同様に コメントを使ってフォーマットしたものだ # => 3 # 行がない場合 期待値は次の行に示される Math.sqrt( ) # => Ruby 式に期待される出力を示す場合は ASCII 矢印が含まれていないコメントを使用して 常 に次の行に示す puts "This string is self-referential." # This string is self-referential.

5 xi irb $ irb irb(main):001:0> => 3 irb(main):002:0> Math.sqrt( ) => irb(main):003:0> puts "This string is self-referential." This string is self-referential. => nil irb $ irb irb(main):001:0> # => 3 => 3 irb(main):002:0> irb(main):003:0* # On a long line, the expected value goes on a new line: irb(main):004:0* Math.sqrt( ) => irb(main):005:0> # => irb(main):006:0* irb(main):007:0* puts "This string is self-referential." This string is self-referential. => nil irb(main):008:0> # This string is self-referential. irb irb irb #!/usr/bin/ruby -w # sample_ruby_file.rb: A sample file 1 + 2

6 xii Math.sqrt( ) puts "This string is self-referential." $ ruby sample_ruby_file.rb This string is self-referential. sample_ruby_file.rb irb ruby-< > ruby-1.8 ruby-1.9

7 xiii rubygems-< > $ ruby setup.rb rails $ gem install rails --include-depencies rails rails facets_core facets_more

8 xiv Array Kernel String capitalize_ first_letter capitalize_first_letter_of_string

9 xv eval.rb irb ri ri $ ri Array # $ ri Array.new # $ ri Array#compact #

10 64 interosculate Method words1 = %w{four and years} words2 = %w{ago seven score} interosculate(words1, words2.method(:reverse_each)) { x puts x } # Four # score # and # seven # years # ago 2.10 begin/finally def between_setup_and_cleanup setup begin yield ensure cleanup

11 65 def write_html(out, doctype=nil) doctype = %{<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" " out.puts doctype out.puts '<html>' begin yield out ensure out.puts '</html>' write_html($stdout) do out out.puts '<h1>sorry, the Web is closed.</h1>' # <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" # " # <html> # <h1>sorry, the Web is closed.</h1> # </html> Kernel#open File#open open('output.txt', 'w') do out out.puts 'Sorry, the filesystem is also closed.' cgi write_html write_html

12 66 #!/usr/bin/ruby # closed_cgi.rb require 'cgi' c = CGI.new("html4") c.out do c.html do c.h1 { 'Sorry, the Web is closed.' } CGI#out CGI#html <html> <html> CGI#h1 <h1> Content-Type: text/html Content-Length: 137 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" " <HTML><H1>Sorry, the Web is closed.</h1></html> builder XmlMarkup require 'rubygems' require 'builder' xml = Builder::XmlMarkup.new.message('type' => 'apology') do b b.content('sorry, Web Services are closed.') puts xml # <message type="apology"> # <content>sorry, Web Services are closed.</content> # </message>

13 96 Method 4.3 my_methods_only class Object def my_methods_only my_super = self.class.superclass return my_super? methods - my_super.instance_methods : methods s = '' s.methods.size # => 143 Object.instance_methods.size # => 41 s.my_methods_only.size # => 102 (s.methods - Object.instance_methods).size # => 102 def s.singleton_method() s.methods.size # => 144

14 97 s.my_methods_only.size # => 103 class Object def new_object_method s.methods.size # => 145 s.my_methods_only.size # => 103 class MyString < String def my_string_method MyString.new.my_methods_only # => ["my_string_method"] my_methods_only Kernel Object Enumerable my_methods_only ancestors class Object def my_methods_only_no_mixins self.class.ancestors.inject(methods) do mlist, ancestor mlist = mlist - ancestor.instance_methods unless ancestor.is_a? Class mlist [].methods.size # => 121 [].my_methods_only.size # => 78 [].my_methods_only_no_mixins.size # => 57 ancestors

15 XML-RPC xmlrpc4r require 'xmlrpc/client' server = XMLRPC::Client.new2(' server.call('examples.getstatename', 5) # => "California" xmlrpc4r Date Time datetime.iso8601 XMLRPC::DateTime

16 260 int Fixnum Bignum boolean TrueClass FalseClass string String double Float datetime.iso8601 XMLRPC::DateTime base64 String struct Hash String array Array nil xmlrpc4r nil xmlrpc4r xmlrpc4r XMLRPC::FaultException begin erver.call('nosuchmethod') rescue XMLRPC::FaultException => e puts "Error: fault code #{e.faultcode}" puts e.faultstring # Error: fault code 7 # Can't evaluate the expression because the name "nosuchmethod" hasn't been defined. def lookup_upc(upc) server = XMLRPC::Client.new2('

17 261 begin response = server.call('lookupupc', upc) return response['found']? response : nil rescue XMLRPC::FaultException => e puts "Error: " puts e.faultcode puts e.faultstring product = lookup_upc(' ') product['description'] # => "Dr Bronner's Peppermint Oil Soap" product['size'] # => "128 fl oz" lookup_upc('no such UPC') # => nil nil xmlrpc4r 7.4 SOAP

untitled

untitled vii ix xi xii xiii xiv xv 1 2 1 2 3 3 4 5 4 6 5 7 8 6 9 7 10 11 12 13 14 8 15 1 2 16 3 17 4 18 19 20 5 21 22 23 24 6 25 7 8 26 27 28 29 9 30 31 10 32 33 34 11 35 36 37 12 38 39 40 13 41 14 42 43 44

More information

i ii iii iv v vi vii viii ix x xi xii xiii xiv xv xvi 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

More information

9 i 9 1 2 3 4 5 6 ii 7 8 9 10 11 12 .......................................... iii ... 1... 1........................................ 9 iv... v 3 8 9 3 vi vii viii ix x xi xii xiii xiv 34 35 22 1 2 1

More information

7 i 7 1 2 3 4 5 6 ii 7 8 9 10 11 1 12 13 14 iii.......................................... iv................................................ 21... 1 v 3 6 7 3 vi vii viii ix x xi xii xiii xiv xv 26 27

More information

vi アハ ート2 アハ ート3 アハ ート4 アハ ート5 アハ ート6 アハ ート7 アハ ート8 アハ ート9 アハ ート10 アハ ート11 アハ ート12 アハ ート13 アハ ート14 アハ ート15 アハ ート16 アハ ート17 アハ ート18 アハ ート19 アハ ート20 アハ

vi アハ ート2 アハ ート3 アハ ート4 アハ ート5 アハ ート6 アハ ート7 アハ ート8 アハ ート9 アハ ート10 アハ ート11 アハ ート12 アハ ート13 アハ ート14 アハ ート15 アハ ート16 アハ ート17 アハ ート18 アハ ート19 アハ ート20 アハ iii vi アハ ート2 アハ ート3 アハ ート4 アハ ート5 アハ ート6 アハ ート7 アハ ート8 アハ ート9 アハ ート10 アハ ート11 アハ ート12 アハ ート13 アハ ート14 アハ ート15 アハ ート16 アハ ート17 アハ ート18 アハ ート19 アハ ート20 アハ ート21 アハ ート22 アハ ート23 vii アハ ート 24 アハ ート 25 アハ ート26

More information

™…

™… i 1 1 1 2 3 5 5 6 7 9 10 11 13 13 14 15 15 16 17 18 20 20 20 21 22 ii CONTENTS 23 24 26 27 2 31 31 32 32 33 34 37 37 38 39 39 40 42 42 43 44 45 48 50 51 51 iii 54 57 58 60 60 62 64 64 67 69 70 iv 70 71

More information

Step2 入門

Step2 入門 ii iii iv v vi NEC Corporation 1999 vii C O N T E N T S PART 1 PART 2 PART 3 viii PART 4 ix C O N T E N T S PART 5 x PART 6 xi C O N T E N T S PART 7 xii PART 8 PART 9 xiii C O N T E N T S xiv xv PART

More information

C ontents VI VII

C ontents VI VII I ntroduction C ontents IV V C ontents VI VII C ontents VIII IX C ontents X XI C ontents XII XIII C ontents XIV XV XVI 01 192 193 02 C olumn 194 195 C olumn C olumn 196 197 03 C olumn C olumn C olumn

More information

CONTENTS 0 1 2 3 4 5 6 7 8 9 10 0 viii ix x http://www.vector.co.jp/vpack/filearea/win/writing/edit/hm/index.html http://hidemaru.xaxon.co.jp/lib/macro/index.html ftp://ftp.m17n.org/pub/mule/windows/ http://www.yatex.org/

More information

困ったときのQ&A

困ったときのQ&A ii iii iv NEC Corporation 1998 v C O N T E N T S PART 1 vi vii viii ix x xi xii PART 2 xiii PART 3 xiv P A R T 1 3 1 2 PART 3 4 2 1 1 2 4 3 PART 1 4 5 5 6 PART 1 7 8 PART 1 9 1 2 3 1 2 3 10 PART 1 1 2

More information

『保守の比較政治学』

『保守の比較政治学』 v vi vii viii ix x xi xii xiii xiv 3 3 3 9 20 25 25 27 30 32 37 xvi 43 47 57 57 60 66 72 74 81 81 83 86 91 xvii 98 101 111 111 111 115 118 125 128 135 135 136 143 151 157 xviii 163 163 167 173 179 185

More information

01_SWGuide_V8.50.fm

01_SWGuide_V8.50.fm ii iii iv v 2 vi vii viii ix x xi xii xiii xiv xv xvi xvii 1 CHAPTER 1-1 1-2 1-3 2 CHAPTER 2-1 2-2 2-3 2-4 1 2 2-5 3 4 2-6 5 6 2-7 7 8 2-8 9 2-9 10 11 2-10 12 13 2-11 14 15 2-12 16 17 18 2-13 1 2 2-14

More information

初等協会5

初等協会5 v vi vii viii ix x xi xii xiii xiv 1 2 3 4 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 Keystone 40 41 42 43 44 45 46 47 48 49 50 51 Eternal Life Gate

More information

パソコン機能ガイド

パソコン機能ガイド PART12 ii iii iv v 1 2 3 4 5 vi vii viii ix P A R T 1 x P A R T 2 xi P A R T 3 xii xiii P A R T 1 2 3 1 4 5 1 6 1 1 2 7 1 2 8 1 9 10 1 11 12 1 13 1 2 3 4 14 1 15 1 2 3 16 4 1 1 2 3 17 18 1 19 20 1 1

More information

パソコン機能ガイド

パソコン機能ガイド PART2 iii ii iv v 1 2 3 4 5 vi vii viii ix P A R T 1 x P A R T 2 xi P A R T 3 xii xiii P A R T 1 2 1 3 4 1 5 6 1 2 1 1 2 7 8 9 1 10 1 11 12 1 13 1 2 3 14 4 1 1 2 3 15 16 1 17 1 18 1 1 2 19 20 1 21 1 22

More information

3360 druby Web Who is translating it? http://dx.doi.org/10.1007/s10766-008-0086-1 $32.00 International Journal of PARALLEL PROGRAMING Must buy! http://dx.doi.org/10.1007/s10766-008-0086-1 toruby The

More information

ohp1.dvi

ohp1.dvi 2008 1 2008.10.10 1 ( 2 ) ( ) ( ) 1 2 1.5 3 2 ( ) 50:50 Ruby ( ) Ruby http://www.ruby-lang.org/ja/ Windows Windows 3 Web Web http://lecture.ecc.u-tokyo.ac.jp/~kuno/is08/ / ( / ) / @@@ ( 3 ) @@@ :!! ( )

More information

I

I I II III IV V VI VII VIII IX X XI XII XIII XIV 1. 2 3 4 5 2. 6 7 8 3. 1 2 3 9 4 5 10 6 11 4. 1 2 3 1 2 12 1 2 3 1 2 3 13 14 1 2 1 15 16 1. 20 1 21 1 22 23 1 2 3 4 24 1 2 ok 25 1 2 26 1 2 3 27 2. 28

More information

Microsoft PowerPoint - ruby_instruction.ppt

Microsoft PowerPoint - ruby_instruction.ppt Ruby 入門 流れ Ruby の文法 画面に出力 キーボードから入力 数値 文字列 変数 配列 ハッシュ 制御構造 ( 分岐 繰り返しなど ) if while case for each 関数 クラス Ruby とは プログラミング言語 インタプリタ言語 オブジェクト指向 国産 ウェブアプリケーションフレームワーク RubyOnRails で注目 弊社での Web アプリケーション開発に利用 画面に出力

More information

Ruby Ruby ruby Ruby G: Ruby>ruby Ks sample1.rb G: Ruby> irb (interactive Ruby) G: Ruby>irb -Ks irb(main):001:0> print( ) 44=>

Ruby Ruby ruby Ruby G: Ruby>ruby Ks sample1.rb G: Ruby> irb (interactive Ruby) G: Ruby>irb -Ks irb(main):001:0> print( ) 44=> Ruby Ruby 200779 ruby Ruby G: Ruby>ruby Ks sample1.rb G: Ruby> irb (interactive Ruby) G: Ruby>irb -Ks irb(main):001:0> print( 2+3+4+5+6+7+8+9 ) 44 irb(main):002:0> irb irb(main):001:0> 1+2+3+4 => 10 irb(main):002:0>

More information

リファレンス

リファレンス STEP1 STEP 2 STEP 3 ii iii iv v NEC Corporation 1998 vi C O N T E N T S P A R T 1 viii ix C O N T E N T S P A R T 2 x P A R T 3 xi C O N T E N T S P A R T 4 xii P A R T 5 xiii C O N T E N T S P A R T

More information

SPP24_Program_WOC(J)-15

SPP24_Program_WOC(J)-15 9:00-9:10 9:20-10:00 Invited Lecture A1-01-I 1 10:00-10:20 A1-02 3 10:20-10:40 A1-03 5 9:20-9:40 B1-01 7 9:40-10:00 B1-02 9 10:00-10:20 B1-03 11 10:20-10:40 B1-04 13 - i - 11:00-12:00 Plenary Lecture S-01

More information

3360 druby Web Who is translating it? http://dx.doi.org/10.1007/s10766-008-0086-1 $32.00 International Journal of PARALLEL PROGRAMING Must buy! http://dx.doi.org/10.1007/s10766-008-0086-1 toruby LT Linux

More information

困ったときのQ&A

困ったときのQ&A Help i 1 ii iii v iv 2 C Alt Delete v iv vii vi vii vi viii ix x x xi 1 2 3 4 5 xii xiii xiv xv xvi xvii c c c xviii xix P A R T 1 P A R T 2 xx P A R T 3 xxi P A R T 4 xxii xxiii P A R T 1 2 1 1 2 3

More information

レーザビームプリンタ Satera ユーザーズガイド

レーザビームプリンタ Satera ユーザーズガイド JPN CD-ROM CD-ROM CD-ROM CD-ROM CD-ROM CD-ROM CD-ROM ii iii iv v vi vii viii ix x xi xii a b c d b c d a xiii xiv xv xvi xvii xviii xix xx 1 CHAPTER 1-1 1-2 1-3 1-4 b a n m l k j c d f g e i h a b c d

More information

困ったときのQ&A

困ったときのQ&A Help i 1 ii iii v iv 2 C Alt Delete v iv vii vi vii vi viii ix x http://121ware.com/support/ 0120-977-121 x xi xii xii xii 1 2 3 4 5 xiii xiv xv xvi xvii xviii xix xx P A R T 1 P A R T 2 xxi P A R T 3

More information

3 5 18 3 5000 1 2 7 8 120 1 9 1954 29 18 12 30 700 4km 1.5 100 50 6 13 5 99 93 34 17 2 2002 04 14 16 6000 12 57 60 1986 55 3 3 3 500 350 4 5 250 18 19 1590 1591 250 100 500 20 800 20 55 3 3 3 18 19 1590

More information

OFISTAR H7000ファクス編(2版 )

OFISTAR H7000ファクス編(2版 ) i ii A iii A A A A A A A A A B C D A A B C D iv B A AB A A B A B A v A C B A ABC A B C A A vi A B B A A A A A A vii A A viii ix 4 5 6 8 9 0 x xi 5 6 9 6 06 C 4 5 8 6 9 0 C 06 06 06 064 065 066 06 068 069

More information

r1.dvi

r1.dvi 2006 1 2006.10.6 ( 2 ( ) 1 2 1.5 3 ( ) Ruby Java Java Java ( Web Web http://lecture.ecc.u-tokyo.ac.jp/~kuno/is06/ / ( / @@@ ( 3 ) @@@ : ( ) @@@ (Q&A) ( ) 1 http://www.sodan.ecc.u-tokyo.ac.jp/cgi-bin/qbbs/view.cgi

More information

VB-C50i/VB-C50iR 使用説明書

VB-C50i/VB-C50iR 使用説明書 a ii iii iv a v vi vii viii d a a d ix a a d b a a a b x a a g a g a e a a xi a a a xii a a xiii xiv 1-2 1-3 d 1-4 1-5 1-6 1-7 1-8 1-9 1-10 1-11 1-12 2-2 2-3 a 2-4 a 2-5 a 2-6 2-7 2-8 2-9 2-10 2-11 2-12

More information

10/ / /30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20 6. http, CGI Perl 11/27 7. ( ) Perl 12/ 4 8. Windows Winsock 12/11 9. JAV

10/ / /30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20 6. http, CGI Perl 11/27 7. ( ) Perl 12/ 4 8. Windows Winsock 12/11 9. JAV tutimura@mist.i.u-tokyo.ac.jp kaneko@ipl.t.u-tokyo.ac.jp http://www.misojiro.t.u-tokyo.ac.jp/ tutimura/sem3/ 2002 12 11 p.1/33 10/16 1. 10/23 2. 10/30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20

More information

untitled

untitled 30 callcc yhara ( ( ) (1) callcc (2) callcc (3) callcc callcc Continuation callcc (1) (2) (3) (1) (2) (3) (4) class Foo def f p 1 callcc{ cc return cc} p 2 class Bar def initialize @cc = Foo.new.f def

More information

●70974_100_AC009160_KAPヘ<3099>ーシス自動車約款(11.10).indb

●70974_100_AC009160_KAPヘ<3099>ーシス自動車約款(11.10).indb " # $ % & ' ( ) * +, -. / 0 1 2 3 4 5 6 7 8 9 : ; < = >? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y " # $ % & ' ( ) * + , -. / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B

More information

『戦時経済体制の構想と展開』

『戦時経済体制の構想と展開』 1 15 15 17 29 36 45 47 48 53 53 54 58 60 70 88 95 95 98 102 107 116 v 121 121 123 124 129 132 142 160 163 163 168 174 183 193 198 205 205 208 212 218 232 237 237 240 247 251 vi 256 268 273 289 293 311

More information

1... 1 2... 1 1... 1 2... 2 3... 2 4... 4 5... 4 6... 4 7... 22 8... 22 3... 22 1... 22 2... 23 3... 23 4... 24 5... 24 6... 25 7... 31 8... 32 9... 3

1... 1 2... 1 1... 1 2... 2 3... 2 4... 4 5... 4 6... 4 7... 22 8... 22 3... 22 1... 22 2... 23 3... 23 4... 24 5... 24 6... 25 7... 31 8... 32 9... 3 3 2620149 3 6 3 2 198812 21/ 198812 21 1 3 4 5 JISJIS X 0208 : 1997 JIS 4 JIS X 0213:2004 http://www.pref.hiroshima.lg.jp/site/monjokan/ 1... 1 2... 1 1... 1 2... 2 3... 2 4... 4 5... 4 6... 4 7... 22

More information

RubyKaigi2009 COBOL

RubyKaigi2009 COBOL RubyKaigi2009 COBOL seki@druby.org 3360 Pragmatic Bookshelf druby Web $32.00 International Journal of PARALLEL PROGRAMING !? MapReduce Rinda (map, reduce) map reduce key value [, ] [, ID] map()

More information

Color MultiWriter 9900C/9800C ユーザーズマニュアル

Color MultiWriter 9900C/9800C ユーザーズマニュアル l l l l l i ii iii iv v vi vii viii ix x xi xii xiii xiv xv xvi xvii xviii xix xx xxi xxii xxiii xxiv xxv xxvi 1.1 1 2 3 1 1 4 5 1 1 6 7-1 1.2 1 8 1.3 1 9 1 1.3.1 10 1 2 11 1 1 1.3.2 12 13 1 1 14 1.4

More information

ダークレディと呼ばれて

ダークレディと呼ばれて p. xiii p. xiv p. 3 p. 4 p. 6 1 p. 7 p. 8 p. 9 p. 10 p. 11 p. 12 p. 13 p. 14 2 p. 15 p. 17 p. 18 p. 19 p. 20 p. 21 p. 22 p. 23 p. 24 3 p. 26 p. 27 p. 28 p. 29 p. 30 p. 31 p. 32 p. 33 p. 34 p. 36 p. 38

More information

リファレンス

リファレンス ii iii iv v vi NEC Corporation 1998 vii C O N T E N T S PART 1 PART 2 viii ix C O N T E N T S PART 3 PART 4 x xi C O N T E N T S PART 5 xii xiii xiv P A R T 1 2 1 3 4 5 1 6 7 1 8 1 9 10 11 1 12 13 1 14

More information

活用ガイド (ハードウェア編)

活用ガイド (ハードウェア編) (Windows 98) 808-877675-122-A ii iii iv NEC Corporation 1999 v vi PART 1 vii viii PART 2 PART 3 ix x xi xii P A R T 1 2 1 3 4 1 5 6 1 7 8 1 9 10 11 1 12 1 1 2 3 13 1 2 3 14 4 5 1 15 1 1 16 1 17 18 1 19

More information

comp -MYPEDIA Programing- Ruby 1 attr_accessor :< 1>, :< 2> class Car def = carname end attr_accessor :name end car = Car.ne

comp -MYPEDIA Programing- Ruby 1 attr_accessor :< 1>, :< 2> class Car def = carname end attr_accessor :name end car = Car.ne Ruby 1 attr_accessor :< 1>, :< 2> class Car def initialize(carname) @name = carname attr_accessor :name car = Car.new("car1") car.name = "car2" puts car.name attr_reader :< 1>, :< 2> class Car def initialize(carname)

More information

デジタル表現論・第4回

デジタル表現論・第4回 デジタル表現論 第 4 回 劉雪峰 ( リュウシュウフォン ) 2016 年 5 月 2 日 劉 雪峰 ( リュウシュウフォン ) デジタル表現論 第 4 回 2016 年 5 月 2 日 1 / 14 本日の目標 Java プログラミングの基礎 出力の復習 メソッドの定義と使用 劉 雪峰 ( リュウシュウフォン ) デジタル表現論 第 4 回 2016 年 5 月 2 日 2 / 14 出力 Systemoutprint()

More information

MCMD Ruby Package Documentation NYSOL : Ver. 1.0 revise history: March 10, 2014 : nysol November 2, 2013 : first release 2014 3 10 Copyright c 2013 by NYSOL CORPORATION 3 1 5 1.1.....................................................

More information

I

I I II III IV V VI VII VIII IX X XI XII XIII XIV XV XVI XVII XVIII XIX XX XXI XXII XXIII XXIV XXV XXVI XXVII XXVIII 1 1. 2 3 2. 4 1 5 6 7 8 9 10 1 2 3 11 3. 12 13 14 1 2 3 15 4 5 16 1 2 3 17 4 18 4. 1 2

More information

LBP-350 ユーザーズガイド

LBP-350 ユーザーズガイド 1 3 4 5 6 7 8 i ii viii x xii xii xiii xiv 1 ii 3 4 5 6 9 9 10 1 1 1 13 14 14 15 16 16 18 19 0 1 3 3 4 5 5 6 7 8 8 30 30 31 34 36 4 45 48 51 51 5 54 54 55 56 57 57 57 58 59 60 60 6 64 65 65 66 67 iii 68

More information

SR-53V[接続編]

SR-53V[接続編] 1 WIRELESS BROADBAND VoIP ROUTER SR-53V 2 3 4 5 6 7 8 9 i Icom Inc. ii iii iv v vi vii viii ix x q w xi xii q w e r t y q w e r t q w e r t y u i o!0!1!2 xiii q w e r t q w e q w e r t q w e r t q w e

More information

* * * ** ** ** * ** * ** * ** * ** * ** ** * * ** * ** *** **** * ** * * * ** * * ** *** **** * * * * * * * * * * ** * * ** * ** ix

* * * ** ** ** * ** * ** * ** * ** * ** ** * * ** * ** *** **** * ** * * * ** * * ** *** **** * * * * * * * * * * ** * * ** * ** ix * * * * * * * * ** * * * ** * ** * ** * * * * * * ** * * * * * ** * ** = viii * * * ** ** ** * ** * ** * ** * ** * ** ** * * ** * ** *** **** * ** * * * ** * * ** *** **** * * * * * * * * * * ** * * **

More information

ユーザーズガイド

ユーザーズガイド JPN CD-ROM CD-ROM CD-ROM CD-ROM ii iii iv v vi vii viii ix x 11 xi xii xiii xiv a b c d b c d a a xv xvi xvii xviii xix xx xxi xxii 1 CHAPTER 1-1 1-2 1-3 1-4 1-5 1-6 a g h i j b c k l m d e f a b c d

More information

リファレンス

リファレンス ii iii iv v vi NEC Corporation 1998 vii C O N T E N T S PART 1 viii ix C O N T E N T S x PART 2 xi C O N T E N T S PART 3 PART 4 xii PART 5 xiii C O N T E N T S xiv PART 6 xv xvi 2 3 4 5 6 7 P A R T

More information

Microsoft PowerPoint - 11RubyIntro-No02.ppt [互換モード]

Microsoft PowerPoint - 11RubyIntro-No02.ppt [互換モード] Ruby 入門 東京電機大学櫻井彰人 Ruby とは? Ruby: 松本ゆきひろ氏による (1993) 純粋オブジェクト指向 スクリプト言語 Web プログラムで どんどんポピュラーに Ruby on Rails (http://www.rubyonrails.org/) なぜか きわめて Lisp like 松本行弘 (Matz) Introduction 実行環境 Windows/Unix/Linux/

More information

レーザビームプリンタ Satera ユーザーズガイド

レーザビームプリンタ Satera ユーザーズガイド JPN CD-ROM CD-ROM CD-ROM CD-ROM CD-ROM CD-ROM CD-ROM ii iii iv v vi vii viii ix x xi a b b OFF ON a xii xiii xiv xv xvi 1 CHAPTER 1-1 1-2 1-3 1-4 a k b c j i h g d e f a b c d e 1-5 f i g h j k a q p

More information

01_.g.r..

01_.g.r.. I II III IV V VI VII VIII IX X XI I II III IV V I I I II II II I I YS-1 I YS-2 I YS-3 I YS-4 I YS-5 I YS-6 I YS-7 II II YS-1 II YS-2 II YS-3 II YS-4 II YS-5 II YS-6 II YS-7 III III YS-1 III YS-2

More information

2

2 1 2 3 4 5 Part I System Requirements 6 1 System Requirements "Planning Large Installations of PRTG Network Monitor 7" 7 PRTG 8 0 9 Part II Installation 10 2 Installation 11 12 13 14 15 16 17 Part III Introduction

More information

エクセルカバー入稿用.indd

エクセルカバー入稿用.indd i 1 1 2 3 5 5 6 7 7 8 9 9 10 11 11 11 12 2 13 13 14 15 15 16 17 17 ii CONTENTS 18 18 21 22 22 24 25 26 27 27 28 29 30 31 32 36 37 40 40 42 43 44 44 46 47 48 iii 48 50 51 52 54 55 59 61 62 64 65 66 67 68

More information

K227 Java 2

K227 Java 2 1 K227 Java 2 3 4 5 6 Java 7 class Sample1 { public static void main (String args[]) { System.out.println( Java! ); } } 8 > javac Sample1.java 9 10 > java Sample1 Java 11 12 13 http://java.sun.com/j2se/1.5.0/ja/download.html

More information

Working Effectively with Legacy tdiary Code using Cucumber and RSpec KAKUTANI Shintaro; Eiwa System Management,Inc.; Nihon Ruby-no-kai pragprog.com Working Effectively with Legacy tdiary code using

More information

( )!?

( )!? (2) Copyright 2006 Kota Abe ( )!? : This is a pen. 84 104 105 83 (, encode) ( ) 84 104 105 83 This is a pen. (, decode) Do you know Tom Riddle? Yes!! ASCII American Standard Code for Information Interchange

More information

r2.dvi

r2.dvi 15 2 1 2015.6.2 ( ( ( Ruby ( ( https://www.ruby-lang.org/ja/documentation/ 2 Chris Pine,, 2,, 2010. Yugui, Ruby,, 2008. Ruby 1 ( Ruby ( 2 ( i i j ( ) /( (regular expression Ruby /.../ ( 1 if / / =~ =~

More information

ITR Market View:情報漏洩対策市場2017目次

ITR Market View:情報漏洩対策市場2017目次 ITR Market View 2017... 1 1-1... 2 1-2... 3 1-2-1... 3 1-2-2... 6 1-2-3... 6 1-2-4... 6 1-3... 7... 15 2-1... 16 2-1-1... 16 2-1-2... 18 2-1-3... 21 2-2... 22... 23 3-1... 24 3-1-1... 24 3-1-2... 26 3-1-3...

More information

untitled

untitled 13 13ECE/CEP/158 1 71 71 71 71 71 71 71 71 71 71 7 1 71 71 71 71 71 71 71 71 71 71 71 71 7 1 71 71 71 71 71 71 71 7 1 71 71 71 71 71 71 71 71 71 71 7 1 71 71 71 71 71 71 71 71 71 71 71 7 1 71 71 71 71

More information

untitled

untitled 16 8 ...1...8...8...9...13...15...22...32...39...51...51...52...54...56...63...73 TMO...74 TMO...74 TMO...75...76...80...88...90 14 17 22 1_0-i *1 WAKAYAMA *1 X_Y-ZX Y Z -1- 1_0-ii 01 P.56 10 JR P.57

More information

新・明解Java入門

新・明解Java入門 537,... 224,... 224,... 32, 35,... 188, 216, 312 -... 38 -... 38 --... 102 --... 103 -=... 111 -classpath... 379 '... 106, 474!... 57, 97!=... 56 "... 14, 476 %... 38 %=... 111 &... 240, 247 &&... 66,

More information

ruby novice ruby novice ruby novice.

ruby novice ruby novice ruby novice. GitHub Ruby 2549 2017 3 1 1 3 2 4 2.1 ruby novice........................... 4 2.2.............................. 6 3 8 3.1 ruby novice....................... 8 3.2 ruby novice............................

More information

Emacs Ruby..

Emacs Ruby.. command line editor 27014533 2018 3 1 5 1.1................................... 5 1.2................................... 5 2 6 2.1 Emacs...................................... 6 2.2 Ruby.......................................

More information

... 2 1 Servlet... 3 1.1... 3 1.2... 4 2 JSP... 6 2.1... 6 JSP... 6... 8 2.2... 9 - Servlet/JSP における 日 本 語 の 処 理 - 1

... 2 1 Servlet... 3 1.1... 3 1.2... 4 2 JSP... 6 2.1... 6 JSP... 6... 8 2.2... 9 - Servlet/JSP における 日 本 語 の 処 理 - 1 Servlet/JSP Creation Date: Oct 18, 2000 Last Update: Mar 29, 2001 Version: 1.1 ... 2 1 Servlet... 3 1.1... 3 1.2... 4 2 JSP... 6 2.1... 6 JSP... 6... 8 2.2... 9 - Servlet/JSP における 日 本 語 の 処 理 - 1 Servlet

More information

r1.dvi

r1.dvi Ruby 2009.9.7 1 ( ) --- ( ( ) ( ) 1 --- ( ) 1 ( ) (?) IT 7K( )?? ( ) ( )? IT ( ) --- ( ) 1 ( ) --- ( ) (?) 2-3% Top-Level ICT Professional 5% ICT Professional 10% 100% 50% 20% Devl. Experiment Adv. ICT

More information

Ruby 2.3 のてざわり新機能と使いどころ Kunihiko Ito ESM 富山合同勉強会

Ruby 2.3 のてざわり新機能と使いどころ Kunihiko Ito ESM 富山合同勉強会 Ruby 2.3 のてざわり新機能と使いどころ Kunihiko Ito ESM 富山合同勉強会 2016 2016-01-30 はじめまして p self p self 名前 : 伊藤邦彦出身 : 富山在住 : 東京所属 : ESM アジャイル事業部仕事 : [Rails, neo4j] @kunitoo @kunitoo From Java To Ruby 変わったこと IDE を使わなくなった

More information

2

2 1 2 3 4 5 6 7 8 9 10 11 12 Character ASCII Code Description \ [092] backslash / [047] forward slash : [058] colon * [042] asterisk? [063] question mark " [034] double quotes < [060] less than > [062] greater

More information

AP-50W[導入編]

AP-50W[導入編] POWER MODE LAN WIRELESS WIRELESS ACCESS POINT AP-50 R 1 WIRELESS ACCESS POINT AP-50W 2 3 4 5 6 i Icom Inc. ii iii POWER MODE LAN WIRELESS WIRELESS ACCESS POINT AP-50 iv SA-3 v vi vii viii q w ix x xi xii

More information

困ったときのQ&A

困ったときのQ&A ii iii iv NEC Corporation 1997 v P A R T 1 vi vii P A R T 2 viii P A R T 3 ix x xi 1P A R T 2 1 3 4 1 5 6 1 7 8 1 9 1 2 3 4 10 1 11 12 1 13 14 1 1 2 15 16 1 2 1 1 2 3 4 5 17 18 1 2 3 1 19 20 1 21 22 1

More information

1... 1 1... 1 2... 1 3... 1 4... 4 5... 7 6... 7 7... 12 8... 12 9... 13 10... 13 11... 13 12... 14 2... 14 1... 14 2... 16 3... 18 4... 19 5... 19 6.

1... 1 1... 1 2... 1 3... 1 4... 4 5... 7 6... 7 7... 12 8... 12 9... 13 10... 13 11... 13 12... 14 2... 14 1... 14 2... 16 3... 18 4... 19 5... 19 6. 3 2620149 1 3 8 3 2 198809 1/1 198809 1 1 3 4 5 JISJIS X 0208 : 1997 JIS 4 JIS X 0213:2004 http://www.pref.hiroshima.lg.jp/site/monjokan/ 1... 1 1... 1 2... 1 3... 1 4... 4 5... 7 6... 7 7... 12 8... 12

More information

10/ / /30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20 6. http, CGI Perl 11/27 7. ( ) Perl 12/ 4 8. Windows Winsock 12/11 9. JAV

10/ / /30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20 6. http, CGI Perl 11/27 7. ( ) Perl 12/ 4 8. Windows Winsock 12/11 9. JAV tutimura@mist.i.u-tokyo.ac.jp kaneko@ipl.t.u-tokyo.ac.jp http://www.misojiro.t.u-tokyo.ac.jp/ tutimura/sem3/ 2002 11 20 p.1/34 10/16 1. 10/23 2. 10/30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20

More information

..,,,, , ( ) 3.,., 3.,., 500, 233.,, 3,,.,, i

..,,,, , ( ) 3.,., 3.,., 500, 233.,, 3,,.,, i 25 Feature Selection for Prediction of Stock Price Time Series 1140357 2014 2 28 ..,,,,. 2013 1 1 12 31, ( ) 3.,., 3.,., 500, 233.,, 3,,.,, i Abstract Feature Selection for Prediction of Stock Price Time

More information

2

2 Java Festa in 2007 OPEN JAVA: IMAGINE THE POSSIBILITIES 2 3 4 Java SE のダウンロード数の比率 1996/12 からのダウンロード数 5 JavaOne 2007 5/7: CommunityOne > NetBeans Day, GlassFish, OpenSolaris, OpenJDK, Web 2.0 5/8-11: JavaOne

More information

1/8 ページ Java 基礎文法最速マスター Java Javaの文法一覧です 他の言語をある程度知っている人はこれを読めばJavaの基礎をマスターしてJavaを書くことができるようになっています 簡易リファレンスとしても利用できると思いますので これは足りないと思うものがあれば教えてください 1. 基礎 class の作成プログラムはclassに記述します たとえばSampleという名前のclassを作る場合

More information

ITR Market View:アイデンティティ/アクセス管理市場2018目次

ITR Market View:アイデンティティ/アクセス管理市場2018目次 ITR Market View: 2018... 1 1-1... 2 1-2... 3 1-2-1... 3 1-2-2... 5 1-2-3... 5 1-2-4... 5 1-3... 6... 9 2-1... 10 2-1-1... 10 2-1-2... 14 2-2 IDM IAM... 16 2-2-1 IDM IAM... 16 2-2-1-1... 16 2-2-1-2... 19

More information

DocuPrint CG 835 II 取扱説明書(サーバー編)

DocuPrint CG 835 II 取扱説明書(サーバー編) DocuPrint CG835 II i ii iii iv v vi vii viii ix 1 2 3 4 5 6 x xi xii 1.1 1 2 1.1.1 1 1.1.2 3 1 4 1.2 1 5 1.3 1.3.1 1 6 1 7 1.3.2 1 8 1 2 1 3 4 9 1 5 10 6 1 1 11 2 1 3 4 12 1 5 13 6 1 7 8 14 1.3.3 1 1

More information

{:from => Java, :to => Ruby } Java Ruby KAKUTANI Shintaro; Eiwa System Management, Inc.; a strong Ruby proponent http://kakutani.com http://www.amazon.co.jp/o/asin/4873113202/kakutani-22 http://www.amazon.co.jp/o/asin/477413256x/kakutani-22

More information

BASIC / / BA- SIC Web 1/10 1/10 / / JavaScript

BASIC / / BA- SIC Web 1/10 1/10 / / JavaScript BASIC / / BA- SIC Web 1/10 1/10 // JavaScript MIT Processing line(10,10,100,100); 1 BASIC / Phidgets 1 GAINER 2 USB / Phidgets USB 1: 1 http://www.phidgets.com/ 2 http://gainer.cc/ / / BGM Phidgets University

More information

Kyosuke MOROHASHI

Kyosuke MOROHASHI Practical Meta Programming on Rails Application @2013-12-17 Ruby 1 in MOROHASHI Kyosuke (@moro) Kyosuke MOROHASHI Aga toolbox Ruby " " Ruby http://www.amazon.co.jp/exec/obidos/asin/4048687158/morodiary05-22/ref=noism

More information