Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Introdução ao Ruby
Search
Brian Thomas Storti
June 01, 2012
Programming
240
6
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Introdução ao Ruby
Brian Thomas Storti
June 01, 2012
More Decks by Brian Thomas Storti
See All by Brian Thomas Storti
Maturidade de APIs REST
brianstorti
1
290
Ruby object model e metaprogramação
brianstorti
5
310
Other Decks in Programming
See All in Programming
LLMは4年分のCompose移行を再現できるのか?実プロダクト279件のXMLで探る自動化の境界線
makun
0
230
typoなんかねぇよ
raspython3
0
630
不幸な GC
chencmd
0
840
S3 を使うアプリケーションをローカル完結で動かすことに全力を注いでみた / Running S3 Apps Offline
contour_gara
0
720
高専、大学編入、そして未踏へ〜プロダクト開発とキャリアの歩み - Technical College, University Transfer, and On to “Mitou” / My Journey in Product Development and Career
pkmiya
0
120
承認済みなのに差戻しできてしまうバグ、型で潰せます
shinchit
0
130
Press start. Python's next generation.
willingc
PRO
3
290
思考垂れ流し開発 ~音声入力 × AIエージェント × 開発ハーネスによる試行錯誤~
npostring
0
570
私のClaude Code活用法 (個人開発編) - PHPerKaigi mini #4(2026/08/24)
panda_program
1
190
Go を使い始めて 2 ヶ月の学び / My first two months with Go
contour_gara
0
400
源内ハンズオン概要編
hideg
0
230
まだ間に合う!今年の夏こそSchemeのマクロ展開器を完全理解!
omasanori
0
590
Featured
See All Featured
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
2.6k
ラッコキーワード サービス紹介資料
rakko
1
4.6M
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.9k
Accessibility Awareness
sabderemane
1
190
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
310
Music & Morning Musume
bryan
47
7.3k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.8k
Navigating Team Friction
lara
192
16k
Leo the Paperboy
mayatellez
8
2.2k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
660
A designer walks into a library…
pauljervisheath
211
24k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
430
Transcript
None
Brian Thomas Storti @brianstorti http://brianstorti.tumblr.com
Dinâmica Orientada a objetos Fortemente tipada Open source Sintaxe elegante
“Ruby is designed to make programmers happy” Yukihiro Matsumoto, criador
do Ruby
Sintaxe
None
None
None
None
None
None
None
Construtor
None
Parâmetros opcionais
None
None
None
Herança
None
None
None
None
None
Métodos com caracteres especiais
mais expressividade
None
Blocos
None
Blocos também podem ter parâmetros
None
None
None
Módulos 2 Utilizações comuns
1 Namespaces
None
2 Mixins
None
None
Iterações
None
None
None
None
None
None
None
None
None
None
Condicionais
None
None
None
None
None
Hashes
None
None
Symbols
None
None
Modificadores de acesso
None
None
None
None
None
None
Exceções
None
None
None
Objeto Objeto Objeto Objeto Objeto Objeto Objeto Objeto Objeto Objeto
Objeto Objeto Objeto Objeto Objeto Objeto Objeto Objeto Objeto Objeto Objeto Objeto Objeto Objeto Objeto Objeto Objeto Objeto Objeto Objeto Objeto em ruby, quase tudo é um
None
None
None
classes também são Objetos e o nome de uma classe
é apenas uma constante
None
Objeto variáveis de instância + link para classe
Classe métodos de instância + link para superclasse
Classes sses abertas Classes abertas são abertas Classes abert sses
abertas Classes abertas Classes abert asses abertas Classes abertas Classes aber sses abertas Classes abertas Classes abert asses abertas Classes abertas Classes aber asses abertas
None
None
None
Testes
Principais opções Test::Unit RSpec built-in gem install rspec
Test::Unit
None
None
None
RSpec
None
None
None
None
None
None
brianstorti.tumblr.com twitter+github @brianstorti