Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
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
300
Ruby object model e metaprogramação
brianstorti
5
310
Other Decks in Programming
See All in Programming
テストを司るデーモンに会いに行く 〜隔離した仮想マシンでテストを通すまで〜
h1d3mun3
1
600
Java 27新機能 / Java 27 new features
kishida
2
190
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
370
技術的負債を組織課題として解く-増えすぎたマイクロサービスとの戦い-
reimaru
1
2.6k
App Storeの外へ──日本のiOSサイドローディング入門 for iOSDC Japan 2026
yuukiw00w
0
280
UnityでSystem.Net.WebSocketsなWebSocketサーバが動かないのでUnity Monoのコードを覗いてみた / about implementing websocket server with unity mono
drumath2237
1
510
Intent as Code
shoppingjaws
6
1.1k
技術的負債の返済は、AI時代の複利で効く投資 — 経営としての意思決定とその遂行
curekoshimizu
1
2k
仕様駆動開発による爆速プロダクト開発 / Bakusoku Spec Driven Development
kobakei
0
150
Ghostty + Neovimで作る 透明でカッコ良い開発環境
j341nono
0
150
フロントエンドUIフレームワークのこれまでとこれから
ssssota
5
3.1k
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
440
Featured
See All Featured
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
620
For a Future-Friendly Web
brad_frost
183
10k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
510
A Modern Web Designer's Workflow
chriscoyier
699
190k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.8k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
690
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.6k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
340
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.4k
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