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
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
AIで効率化できた業務・日常
ochtum
0
140
Agentic UI
manfredsteyer
PRO
0
160
Signal Forms: Beyond the Basics @ngBaguette 2026 in Paris
manfredsteyer
PRO
0
250
Make SRE Operations Easier with Azure SRE Agent
kkamegawa
0
6.1k
AI時代の仕事技芸論 — ソフトウェア開発で「遊ぶように働く」職人的熟達のすすめ
kuranuki
2
680
肥大化するレガシーコードに立ち向かうためのインターフェース分離と依存の逆転 / JJUG CCC 2026 Spring
hirokunimaeta
0
560
ローカルLLMでどこまでコードが書けるか -拡張版 / How much code can be written on a local LLM Extended
kishida
11
4.1k
並列実装の現場、2ヶ月間実務でAIを使い倒したAIもPCも私も限界が近い
ming_ayami
0
130
ADKを使って簡単にAIエージェントを作ってみよう
k1mu21
0
260
AI時代のUIはどこへ行く?その2!
yusukebe
21
7.2k
セキュリティの専門家じゃなくてもできる。「セキュリティ意識」をアップデートして サプライチェーン攻撃への耐性を高めよう。
tk3fftk
5
760
Composerを使ったサプライチェーン攻撃の様子を眺めてみる #phpstudy
o0h
PRO
2
250
Featured
See All Featured
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
590
Chasing Engaging Ingredients in Design
codingconduct
0
220
The Pragmatic Product Professional
lauravandoore
37
7.3k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
330
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
71
40k
Paper Plane (Part 1)
katiecoart
PRO
0
9k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
210
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.8k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
1
3.6k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
62
54k
A Modern Web Designer's Workflow
chriscoyier
698
190k
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