Upcoming SlideShare
×

# Ruby&Rails入門講座-1

4,126

Published on

Published in: Technology
5 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
• Be the first to comment

Views
Total Views
4,126
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
69
0
Likes
5
Embeds 0
No embeds

No notes for slide

### Ruby&Rails入門講座-1

1. 1. Ruby勉強会@札幌 特別編 Ruby&Rails 入門講座 Ruby札幌 http://jp.rubyist.net/?RubySapporo
2. 2. アジェンダ -はじめに(5分) -自己紹介(35分) -irbを使ったRuby実習(20分) -休憩(5分) -Rails実習(110分) -おわりに (5分)
3. 3. 自己紹介 Self-Introduction
4. 4. irbを使ったRuby実習 Practice ruby by using irb
5. 5. Ruby実習 1 + 1
6. 6. Ruby実習 1 + 0.1 * 5
7. 7. Ruby実習 a = 1 a.class
8. 8. Ruby実習 b = 2 c = a + b puts c
9. 9. Ruby実習 ab = “aaa”+“bbb” puts “#{ab}ccc”
10. 10. Ruby実習 ary = %w|aaa bbb ccc| ary.class ary.inspect
11. 11. Ruby実習 ary[0] ary << “ddd” ary.shift puts ary
12. 12. Ruby実習 ary.each do |element| puts element end
13. 13. Ruby実習 hash = {“aaa” => “xxx”, “bbb” => “yyy”} hash.class
14. 14. Ruby実習 a = true a.class a.inspect
15. 15. Ruby実習 if a puts “true” else puts “false” end
16. 16. Ruby実習 def foo(isNight, name) if (isNight) return “こんばんわ#{name}” else return “こんにちわ#{name}” end end
17. 17. Ruby実習 puts foo(true, “しまだ”)
18. 18. 休憩 break time
19. 19. Railsチュートリアル Practice rails
20. 20. ここからは masuidriveさんの資料で
1. #### A particular slide catching your eye?

Clipping is a handy way to collect important slides you want to go back to later.