SlideShare ist ein Scribd-Unternehmen logo
1 von 26
Understanding Ruby’s Object Model Chris Pine July 10, 2003
Some Ruby Basics ,[object Object],[object Object]
Some Ruby Basics ,[object Object],[object Object],[object Object],[object Object]
Some Ruby Basics ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
A Little Quiz ,[object Object]
A Little Quiz ,[object Object],[object Object]
A Little Quiz ,[object Object],[object Object],[object Object]
A Little Quiz ,[object Object],[object Object],[object Object],[object Object]
A Little Quiz ,[object Object],[object Object],[object Object],[object Object],[object Object]
A Little Quiz ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
A Little Quiz ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
A Little Quiz ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Wrong Mental Picture Object class Classes Subclasses objects
What We Know… ,[object Object],[object Object],[object Object]
What We Know… ,[object Object],[object Object],[object Object],[object Object],[object Object]
What We Know… ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Superclass Relationships Object Module Class String Integer Fixnum
Class Relationships Object Module String Integer Fixnum 5 ' hi ' Class
Relationships ,[object Object],[object Object],[object Object],*
Right Mental Picture Object Module Class String Integer Fixnum 5 ' hi '
Modules ,[object Object],[object Object],[object Object],[object Object],[object Object],Object Proxy: FooMod foo String reverse split …
Singleton Classes (objects) ,[object Object],[object Object],[object Object],[object Object],String 'Chris'(S) ' Chris ' reverse split … wife
Singleton Classes (classes) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Singleton Classes (classes) Polygon Triangle hypotenuse area largest new Class Polygon(S) ? ? ? ?
Polygon Triangle hypotenuse area largest new Class Poly(S) Tri(S) Object Obj(S) Class(S) Mod(S) Module
 

Weitere ähnliche Inhalte

Ähnlich wie Ruby Object Model Explained

Eo gaddis java_chapter_08_5e
Eo gaddis java_chapter_08_5eEo gaddis java_chapter_08_5e
Eo gaddis java_chapter_08_5eGina Bullock
 
Eo gaddis java_chapter_08_5e
Eo gaddis java_chapter_08_5eEo gaddis java_chapter_08_5e
Eo gaddis java_chapter_08_5eGina Bullock
 
Expectations (Geometry)
Expectations (Geometry)Expectations (Geometry)
Expectations (Geometry)rfant
 
Understanding Prototypal Inheritance
Understanding Prototypal InheritanceUnderstanding Prototypal Inheritance
Understanding Prototypal InheritanceGuy Royse
 
Type class polymorphism
Type class polymorphismType class polymorphism
Type class polymorphismMayank Bairagi
 
Real world gobbledygook
Real world gobbledygookReal world gobbledygook
Real world gobbledygookPawel Szulc
 
4Developers: Paweł Szulc- Real-World Gobbledygook
4Developers: Paweł Szulc- Real-World Gobbledygook 4Developers: Paweł Szulc- Real-World Gobbledygook
4Developers: Paweł Szulc- Real-World Gobbledygook PROIDEA
 
Python advanced 2. regular expression in python
Python advanced 2. regular expression in pythonPython advanced 2. regular expression in python
Python advanced 2. regular expression in pythonJohn(Qiang) Zhang
 

Ähnlich wie Ruby Object Model Explained (14)

Eo gaddis java_chapter_08_5e
Eo gaddis java_chapter_08_5eEo gaddis java_chapter_08_5e
Eo gaddis java_chapter_08_5e
 
Eo gaddis java_chapter_08_5e
Eo gaddis java_chapter_08_5eEo gaddis java_chapter_08_5e
Eo gaddis java_chapter_08_5e
 
ACM init() Day 6
ACM init() Day 6ACM init() Day 6
ACM init() Day 6
 
Java Tips, Tricks and Pitfalls
Java Tips, Tricks and PitfallsJava Tips, Tricks and Pitfalls
Java Tips, Tricks and Pitfalls
 
Java Lecture5.pptx
Java Lecture5.pptxJava Lecture5.pptx
Java Lecture5.pptx
 
Object concepts
Object conceptsObject concepts
Object concepts
 
Ruby objects
Ruby objectsRuby objects
Ruby objects
 
Expectations (Geometry)
Expectations (Geometry)Expectations (Geometry)
Expectations (Geometry)
 
Understanding Prototypal Inheritance
Understanding Prototypal InheritanceUnderstanding Prototypal Inheritance
Understanding Prototypal Inheritance
 
Type class polymorphism
Type class polymorphismType class polymorphism
Type class polymorphism
 
Real world gobbledygook
Real world gobbledygookReal world gobbledygook
Real world gobbledygook
 
4Developers: Paweł Szulc- Real-World Gobbledygook
4Developers: Paweł Szulc- Real-World Gobbledygook 4Developers: Paweł Szulc- Real-World Gobbledygook
4Developers: Paweł Szulc- Real-World Gobbledygook
 
Object concepts
Object conceptsObject concepts
Object concepts
 
Python advanced 2. regular expression in python
Python advanced 2. regular expression in pythonPython advanced 2. regular expression in python
Python advanced 2. regular expression in python
 

Mehr von hackday08

14_amen_wow.ppt
14_amen_wow.ppt14_amen_wow.ppt
14_amen_wow.ppthackday08
 
Doing%20Business%20in%20India%20Breakfast%20Seminar%20-%20Hunt%20PPP%20(6).PPT
Doing%20Business%20in%20India%20Breakfast%20Seminar%20-%20Hunt%20PPP%20(6).PPTDoing%20Business%20in%20India%20Breakfast%20Seminar%20-%20Hunt%20PPP%20(6).PPT
Doing%20Business%20in%20India%20Breakfast%20Seminar%20-%20Hunt%20PPP%20(6).PPThackday08
 
Indian%20Law.ppt
Indian%20Law.pptIndian%20Law.ppt
Indian%20Law.ppthackday08
 
Hermeneutics_Quiz.ppt
Hermeneutics_Quiz.pptHermeneutics_Quiz.ppt
Hermeneutics_Quiz.ppthackday08
 
LCcharge_JHU.ppt
LCcharge_JHU.pptLCcharge_JHU.ppt
LCcharge_JHU.ppthackday08
 
2005YRBSslides-SexualRisk.ppt
2005YRBSslides-SexualRisk.ppt2005YRBSslides-SexualRisk.ppt
2005YRBSslides-SexualRisk.ppthackday08
 
CHEM1010-Fall_04-22.ppt
CHEM1010-Fall_04-22.pptCHEM1010-Fall_04-22.ppt
CHEM1010-Fall_04-22.ppthackday08
 
CHEM1010-Fall_04-22.ppt
CHEM1010-Fall_04-22.pptCHEM1010-Fall_04-22.ppt
CHEM1010-Fall_04-22.ppthackday08
 
CHEM1010-Fall_04-22.ppt
CHEM1010-Fall_04-22.pptCHEM1010-Fall_04-22.ppt
CHEM1010-Fall_04-22.ppthackday08
 
CHEM1010-Fall_04-22.ppt
CHEM1010-Fall_04-22.pptCHEM1010-Fall_04-22.ppt
CHEM1010-Fall_04-22.ppthackday08
 
dh-slides-perf.ppt
dh-slides-perf.pptdh-slides-perf.ppt
dh-slides-perf.ppthackday08
 
dh-slides-perf.ppt
dh-slides-perf.pptdh-slides-perf.ppt
dh-slides-perf.ppthackday08
 
CHEM1010-Fall_04-22.ppt
CHEM1010-Fall_04-22.pptCHEM1010-Fall_04-22.ppt
CHEM1010-Fall_04-22.ppthackday08
 
CHEM1010-Fall_04-22.ppt
CHEM1010-Fall_04-22.pptCHEM1010-Fall_04-22.ppt
CHEM1010-Fall_04-22.ppthackday08
 

Mehr von hackday08 (15)

WOW.PPT
WOW.PPTWOW.PPT
WOW.PPT
 
14_amen_wow.ppt
14_amen_wow.ppt14_amen_wow.ppt
14_amen_wow.ppt
 
Doing%20Business%20in%20India%20Breakfast%20Seminar%20-%20Hunt%20PPP%20(6).PPT
Doing%20Business%20in%20India%20Breakfast%20Seminar%20-%20Hunt%20PPP%20(6).PPTDoing%20Business%20in%20India%20Breakfast%20Seminar%20-%20Hunt%20PPP%20(6).PPT
Doing%20Business%20in%20India%20Breakfast%20Seminar%20-%20Hunt%20PPP%20(6).PPT
 
Indian%20Law.ppt
Indian%20Law.pptIndian%20Law.ppt
Indian%20Law.ppt
 
Hermeneutics_Quiz.ppt
Hermeneutics_Quiz.pptHermeneutics_Quiz.ppt
Hermeneutics_Quiz.ppt
 
LCcharge_JHU.ppt
LCcharge_JHU.pptLCcharge_JHU.ppt
LCcharge_JHU.ppt
 
2005YRBSslides-SexualRisk.ppt
2005YRBSslides-SexualRisk.ppt2005YRBSslides-SexualRisk.ppt
2005YRBSslides-SexualRisk.ppt
 
CHEM1010-Fall_04-22.ppt
CHEM1010-Fall_04-22.pptCHEM1010-Fall_04-22.ppt
CHEM1010-Fall_04-22.ppt
 
CHEM1010-Fall_04-22.ppt
CHEM1010-Fall_04-22.pptCHEM1010-Fall_04-22.ppt
CHEM1010-Fall_04-22.ppt
 
CHEM1010-Fall_04-22.ppt
CHEM1010-Fall_04-22.pptCHEM1010-Fall_04-22.ppt
CHEM1010-Fall_04-22.ppt
 
CHEM1010-Fall_04-22.ppt
CHEM1010-Fall_04-22.pptCHEM1010-Fall_04-22.ppt
CHEM1010-Fall_04-22.ppt
 
dh-slides-perf.ppt
dh-slides-perf.pptdh-slides-perf.ppt
dh-slides-perf.ppt
 
dh-slides-perf.ppt
dh-slides-perf.pptdh-slides-perf.ppt
dh-slides-perf.ppt
 
CHEM1010-Fall_04-22.ppt
CHEM1010-Fall_04-22.pptCHEM1010-Fall_04-22.ppt
CHEM1010-Fall_04-22.ppt
 
CHEM1010-Fall_04-22.ppt
CHEM1010-Fall_04-22.pptCHEM1010-Fall_04-22.ppt
CHEM1010-Fall_04-22.ppt
 

Kürzlich hochgeladen

SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 

Kürzlich hochgeladen (20)

SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 

Ruby Object Model Explained