Download presentation
Presentation is loading. Please wait.
Published byCatherine Phelps Modified over 9 years ago
1
Guide to filenames
2
FilenameTopic RubyBasicsExpressions, strings, etc.
3
FilenameTopic RubyClasses-1Simple Cat class RubyClasses-2Bottle with overloaded operators RubyClasses-3Duck typing RubyClasses-4Object equality RubyClasses-5Type-safe methods RubyClasses-6Overloading [] and each, review yield RubyClasses-7Object comparisons, hash code RubyClasses-8Class methods and variables *filename extension is.rb
4
FilenameTopic RubyInheritance-1Simple Person/Student inheritance RubyInheritance-1aShow instance vars NOT inherited RubyInheritance-2Override inherited methods RubyInheritance-2aMethod visibility RubyInheritance-3Abstract classes RubyInheritance-4Chaining methods (super) RubyInheritance-5Class variables
5
FilenameTopic RubyModulesSimple module to encode/decode RubyModules-2Shows mixin (flying creature) RubyOpenClasses-1Simple Cat class RubyOpenClasses-2Add a method to the Cat class RubySingletonPerson singleton method RubyLSPLSP example (mathn)
6
FilenameTopic RubyRegexRegular expressions
7
FilenameTopic RubyReflection-1Show methods/vars of Cat RubyReflection-2Message framework
8
FilenameTopic RubyMetaprogrammingHow to write attr accessors RubyMetaprogramming-2 questions.qmData for quiz program questionsv1.rbJust load data, getting started quiz.rbStores questions and answers Question (in quiz.rb)Contains one question (w answers) Answer (in quiz.rb)Contains one answer (right/wrong) questions_test.rbUnit test to ensure questions load OK
9
FilenameTopic RubyMethodArgsShows 3 ways to pass arguments RubyYieldFibonacci using yield RubyProc-1Generate # sequences using blocks, procs RubyProc-2Uses eval, instance_eval RubyProc-3Call an instance method
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.