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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Brian Thomas Storti
June 01, 2012
Programming
230
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
symfony/aiとlaravel/boost
77web
0
140
AI時代の仕事技芸論〜ソフトウェア開発で「遊ぶように働く」職人的熟達のすすめ(スクフェス仙台 2026バージョン)
kuranuki
0
680
The Bowling Game- From Imperative to Functional Programming - Part 1
philipschwarz
PRO
0
340
継続モナドとリアクティブプログラミング
yukikurage
3
620
【SRE NEXT 2026 Lunch Session】一人目専任SREの立ち上げを加速する ― AIと進めたオンボーディングで2分を0.04秒にした話
pkshadeck
PRO
0
2.9k
型も通る、synthも通る、それでも危ない 〜AIのCDKの権限とコストを機械で検証する〜 / It Passes Type Checks, It Passes Synth Checks, but It’s Still Risky — Automatically Verifying Permissions and Costs in AI’s CDK —
seike460
PRO
1
400
act1-costs.pdf
sumedhbala
0
240
20260623_Loop Engineeringで自分の分身の問い合わせBotを作る
ryugen04
0
230
Laravel Boostに学ぶ、AIにPHPを書かせる技術 〜OSSの実装から蒸留するエージェント制御の王道〜
kentaroutakeda
3
520
PHP Application における Kubernetes 内 gRPC 通信
ganchiku
0
530
初めてのKubernetes 本番運用でハマった話
oku053
0
130
【やさしく解説 設計編 #0】DDDのコード、読めるのに分からない人へ
panda728
PRO
2
270
Featured
See All Featured
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
340
Java REST API Framework Comparison - PWX 2021
mraible
34
9.5k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
1.1k
Optimizing for Happiness
mojombo
378
71k
Building Flexible Design Systems
yeseniaperezcruz
330
40k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.6k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Accessibility Awareness
sabderemane
1
160
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
220
Exploring anti-patterns in Rails
aemeredith
3
450
The Mindset for Success: Future Career Progression
greggifford
PRO
0
430
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
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